1 | <?php |
||
38 | class Module implements |
||
39 | BootstrapListenerInterface, |
||
40 | ControllerProviderInterface, |
||
41 | ConfigProviderInterface, |
||
42 | DependencyIndicatorInterface |
||
43 | { |
||
44 | /** |
||
45 | * {@inheritDoc} |
||
46 | */ |
||
47 | public function onBootstrap(EventInterface $event) |
||
48 | { |
||
49 | /* @var $application \Zend\Mvc\Application */ |
||
50 | $application = $event->getTarget(); |
||
51 | /* @var $container ContainerInterface */ |
||
52 | $container = $application->getServiceManager(); |
||
53 | 72 | ||
54 | $events = $application->getEventManager(); |
||
55 | 72 | ||
56 | // Initialize logger collector once the profiler is initialized itself |
||
57 | 72 | $events->attach( |
|
58 | 72 | 'profiler_init', |
|
59 | function () use ($container) { |
||
60 | $container->get('doctrine.sql_logger_collector.orm_default'); |
||
61 | } |
||
62 | 72 | ); |
|
63 | 72 | ||
64 | 72 | /* @var $postCliLoadListener PostCliLoadListener */ |
|
65 | $postCliLoadListener = $container->get(PostCliLoadListener::class); |
||
66 | $postCliLoadListener->attach($events); |
||
67 | } |
||
68 | |||
69 | 72 | /** |
|
70 | * {@inheritDoc} |
||
71 | 72 | */ |
|
72 | public function getConfig() |
||
76 | |||
77 | 72 | /** |
|
78 | * {@inheritDoc} |
||
79 | 72 | */ |
|
80 | public function getControllerConfig() |
||
84 | |||
85 | 72 | /** |
|
86 | * {@inheritDoc} |
||
87 | 72 | */ |
|
88 | public function getModuleDependencies() |
||
92 | } |
||
93 |