mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 01:55:01 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -34,23 +34,19 @@ use Symfony\Component\Security\Core\Security;
|
||||
|
||||
class CalendarVoter extends AbstractChillVoter implements ProvideRoleHierarchyInterface
|
||||
{
|
||||
public const CREATE = 'CHILL_CALENDAR_CALENDAR_CREATE';
|
||||
final public const CREATE = 'CHILL_CALENDAR_CALENDAR_CREATE';
|
||||
|
||||
public const DELETE = 'CHILL_CALENDAR_CALENDAR_DELETE';
|
||||
final public const DELETE = 'CHILL_CALENDAR_CALENDAR_DELETE';
|
||||
|
||||
public const EDIT = 'CHILL_CALENDAR_CALENDAR_EDIT';
|
||||
final public const EDIT = 'CHILL_CALENDAR_CALENDAR_EDIT';
|
||||
|
||||
public const SEE = 'CHILL_CALENDAR_CALENDAR_SEE';
|
||||
final public const SEE = 'CHILL_CALENDAR_CALENDAR_SEE';
|
||||
|
||||
private AuthorizationHelperInterface $authorizationHelper;
|
||||
|
||||
private CenterResolverManagerInterface $centerResolverManager;
|
||||
|
||||
private VoterHelperInterface $voterHelper;
|
||||
private readonly VoterHelperInterface $voterHelper;
|
||||
|
||||
public function __construct(
|
||||
private Security $security,
|
||||
VoterHelperFactoryInterface $voterHelperFactory
|
||||
private readonly Security $security,
|
||||
VoterHelperFactoryInterface $voterHelperFactory,
|
||||
) {
|
||||
$this->voterHelper = $voterHelperFactory
|
||||
->generate(self::class)
|
||||
|
Reference in New Issue
Block a user