<?php
// src/EventSubscriber/PermissionSubscriber.php
namespace App\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\KernelEvents;
class PermissionSubscriber implements EventSubscriberInterface
{
public function __construct()
{
}
public function onKernelRequest(RequestEvent $event)
{
}
public static function getSubscribedEvents()
{
return [
// must be registered before (i.e. with a higher priority than) the default listener
KernelEvents::REQUEST => [['onKernelRequest', 20]],
];
}
}