Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function create(ModuleManager $modules) |
||
33 | { |
||
34 | $services = $modules->getEvent()->getParam('ServiceManager'); |
||
35 | if ($services->has($this::SERVICE)) { |
||
36 | return $services->get($this::SERVICE); |
||
37 | } |
||
38 | |||
39 | $sharedEvents = $modules->getEventManager()->getSharedManager(); |
||
40 | $eventProfiler = new EventProfiler($services->get(DebuggerFactory::SERVICE), $sharedEvents); |
||
41 | $sharedEvents->attachAggregate(new EventProfilerListener($eventProfiler)); |
||
42 | $services->setService($this::SERVICE, $eventProfiler); |
||
43 | return $eventProfiler; |
||
44 | } |
||
45 | } |
||
46 |