mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-09 08:14:59 +00:00
apply rector rules: symfony **UP TO** 44
This commit is contained in:
@@ -17,7 +17,7 @@ use Chill\TaskBundle\Entity\AbstractTask;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
|
||||
|
||||
class AuthorizationEvent extends Event
|
||||
class AuthorizationEvent extends \Symfony\Contracts\EventDispatcher\Event
|
||||
{
|
||||
final public const VOTE = 'chill_task.vote';
|
||||
|
||||
|
@@ -95,7 +95,7 @@ final class TaskVoter extends AbstractChillVoter implements ProvideRoleHierarchy
|
||||
|
||||
$event = new AuthorizationEvent($subject, $attribute, $token);
|
||||
|
||||
$this->eventDispatcher->dispatch(AuthorizationEvent::VOTE, $event);
|
||||
$this->eventDispatcher->dispatch($event, AuthorizationEvent::VOTE);
|
||||
|
||||
if ($event->hasVote()) {
|
||||
$this->logger->debug('The TaskVoter is overriding by '
|
||||
|
Reference in New Issue
Block a user