1 | <?php |
||
37 | class Module implements |
||
38 | ControllerProviderInterface, |
||
39 | ConfigProviderInterface, |
||
40 | InitProviderInterface, |
||
41 | DependencyIndicatorInterface |
||
42 | { |
||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | 72 | public function init(ModuleManagerInterface $manager) |
|
47 | { |
||
48 | 72 | $events = $manager->getEventManager(); |
|
49 | 72 | $serviceManager = $manager->getEvent()->getParam('ServiceManager'); |
|
|
|||
50 | |||
51 | // Initialize logger collector once the profiler is initialized itself |
||
52 | 72 | $events->attach( |
|
53 | 72 | 'profiler_init', |
|
54 | function () use ($serviceManager) { |
||
55 | $serviceManager->get('doctrine.sql_logger_collector.orm_default'); |
||
56 | } |
||
57 | 72 | ); |
|
58 | |||
59 | /* @var $postCliLoadListener PostCliLoadListener */ |
||
60 | 72 | $postCliLoadListener = $serviceManager->get(PostCliLoadListener::class); |
|
61 | 72 | $postCliLoadListener->attach($events); |
|
62 | 72 | } |
|
63 | |||
64 | /** |
||
65 | * {@inheritDoc} |
||
66 | */ |
||
67 | 72 | public function getConfig() |
|
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | 72 | public function getControllerConfig() |
|
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | 72 | public function getModuleDependencies() |
|
87 | } |
||
88 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.