src/EventSubscriber/PermissionSubscriber.php line 16

Open in your IDE?
  1. <?php
  2. // src/EventSubscriber/PermissionSubscriber.php
  3. namespace App\EventSubscriber;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. use Symfony\Component\HttpKernel\Event\RequestEvent;
  6. use Symfony\Component\HttpKernel\KernelEvents;
  7. class PermissionSubscriber implements EventSubscriberInterface
  8. {
  9.     public function __construct()
  10.     {
  11.         
  12.     }
  13.     public function onKernelRequest(RequestEvent $event)
  14.     {
  15.     }
  16.     public static function getSubscribedEvents()
  17.     {
  18.         return [
  19.             // must be registered before (i.e. with a higher priority than) the default listener
  20.             KernelEvents::REQUEST => [['onKernelRequest'20]],
  21.         ];
  22.     }
  23. }