src/EventSubscriber/TwigEventSubscriber.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\EventSubscriber;
  3. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  4. use Symfony\Component\HttpKernel\Event\ControllerEvent;
  5. class TwigEventSubscriber implements EventSubscriberInterface
  6. {
  7.     public function onControllerEvent(ControllerEvent $event)
  8.     {
  9.         // ...
  10.     }
  11.     public static function getSubscribedEvents()
  12.     {
  13.         return [
  14.             ControllerEvent::class => 'onControllerEvent',
  15.         ];
  16.     }
  17. }