1 | <?php |
||
16 | class GlobalContextSubscriber implements EventSubscriberInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var GlobalContextFactory |
||
20 | */ |
||
21 | private $contextFactory; |
||
22 | |||
23 | /** |
||
24 | * GlobalContextSubscriber constructor. |
||
25 | * |
||
26 | * @param GlobalContextFactory $contextFactory |
||
27 | */ |
||
28 | public function __construct(GlobalContextFactory $contextFactory) |
||
32 | |||
33 | /** |
||
34 | * Returns an array of event names this subscriber wants to listen to. |
||
35 | * |
||
36 | * @return array The event names to listen to |
||
37 | */ |
||
38 | public static function getSubscribedEvents() |
||
44 | |||
45 | /** |
||
46 | * @param GetResponseEvent $event |
||
47 | */ |
||
48 | public function onKernelRequest(GetResponseEvent $event) |
||
62 | } |
||
63 |