1 | <?php |
||
16 | class EventCompilerPass implements CompilerPassInterface |
||
17 | { |
||
18 | use FileCacheTrait; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 2 | public function process(ContainerBuilder $container) |
|
24 | { |
||
25 | 2 | $this->dumpVariableToCache('events', $this->getEvents()); |
|
26 | 2 | } |
|
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | * @throws Exception |
||
31 | */ |
||
32 | 2 | private function getEvents() |
|
45 | |||
46 | /** |
||
47 | * @param ReflectionClass $reflection |
||
48 | * @param $events |
||
49 | * @param string $class |
||
50 | * @throws Exception |
||
51 | */ |
||
52 | 2 | private function handleEvent(ReflectionClass $reflection, array &$events, string $class) |
|
78 | } |
||
79 |