mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-10 00:34:58 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -20,16 +20,16 @@ use function in_array;
|
||||
|
||||
class CalendarDocVoter extends Voter
|
||||
{
|
||||
public const EDIT = 'CHILL_CALENDAR_DOC_EDIT';
|
||||
final public const EDIT = 'CHILL_CALENDAR_DOC_EDIT';
|
||||
|
||||
public const SEE = 'CHILL_CALENDAR_DOC_SEE';
|
||||
final public const SEE = 'CHILL_CALENDAR_DOC_SEE';
|
||||
|
||||
private const ALL = [
|
||||
'CHILL_CALENDAR_DOC_EDIT',
|
||||
'CHILL_CALENDAR_DOC_SEE',
|
||||
];
|
||||
|
||||
public function __construct(private Security $security)
|
||||
public function __construct(private readonly Security $security)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -24,7 +24,7 @@ use Symfony\Component\Security\Core\Authorization\Voter\Voter;
|
||||
|
||||
class InviteVoter extends Voter
|
||||
{
|
||||
public const ANSWER = 'CHILL_CALENDAR_INVITE_ANSWER';
|
||||
final public const ANSWER = 'CHILL_CALENDAR_INVITE_ANSWER';
|
||||
|
||||
protected function supports($attribute, $subject): bool
|
||||
{
|
||||
|
Reference in New Issue
Block a user