remove usage of deprecated Role into Export

This commit is contained in:
2022-09-05 17:26:36 +02:00
parent c442529799
commit 75bdc335e5
125 changed files with 153 additions and 154 deletions

View File

@@ -33,7 +33,7 @@ final class AgentAggregator implements AggregatorInterface
$this->userRender = $userRender;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -33,7 +33,7 @@ class CancelReasonAggregator implements AggregatorInterface
$this->translatableStringHelper = $translatableStringHelper;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -33,7 +33,7 @@ final class JobAggregator implements AggregatorInterface
$this->translatableStringHelper = $translatableStringHelper;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -29,7 +29,7 @@ final class LocationAggregator implements AggregatorInterface
$this->locationRepository = $locationRepository;
}
public function addRole(): ?Role
public function addRole(): ?string
{
return null;
}

View File

@@ -33,7 +33,7 @@ final class LocationTypeAggregator implements AggregatorInterface
$this->translatableStringHelper = $translatableStringHelper;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -20,7 +20,7 @@ use Symfony\Component\Security\Core\Role\Role;
class MonthYearAggregator implements AggregatorInterface
{
public function addRole(): ?Role
public function addRole(): ?string
{
return null;
}

View File

@@ -33,7 +33,7 @@ final class ScopeAggregator implements AggregatorInterface
$this->translatableStringHelper = $translatableStringHelper;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -103,10 +103,10 @@ class CountAppointments implements ExportInterface, GroupedExportInterface
return $qb;
}
public function requiredRole(): Role
public function requiredRole(): string
{
// which role should we give here?
return new Role(PersonVoter::STATS);
return PersonVoter::STATS;
}
public function supportsModifiers(): array

View File

@@ -97,9 +97,9 @@ class StatAppointmentAvgDuration implements ExportInterface, GroupedExportInterf
return $qb;
}
public function requiredRole(): Role
public function requiredRole(): string
{
return new Role(AccompanyingPeriodVoter::STATS);
return AccompanyingPeriodVoter::STATS;
}
public function supportsModifiers(): array

View File

@@ -97,9 +97,9 @@ class StatAppointmentSumDuration implements ExportInterface, GroupedExportInterf
return $qb;
}
public function requiredRole(): Role
public function requiredRole(): string
{
return new Role(AccompanyingPeriodVoter::STATS);
return AccompanyingPeriodVoter::STATS;
}
public function supportsModifiers(): array

View File

@@ -29,7 +29,7 @@ class AgentFilter implements FilterInterface
$this->userRender = $userRender;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -21,7 +21,7 @@ use Symfony\Component\Form\FormBuilderInterface;
class BetweenDatesFilter implements FilterInterface
{
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -35,7 +35,7 @@ class JobFilter implements FilterInterface
$this->translatableStringHelper = $translatableStringHelper;
}
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -35,7 +35,7 @@ class ScopeFilter implements FilterInterface
$this->translatableStringHelper = $translatableStringHelper;
}
public function addRole()
public function addRole(): ?string
{
return null;
}