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