1 | <?php |
||
15 | class Module implements |
||
16 | Feature\ValidatorProviderInterface, |
||
17 | Feature\InitProviderInterface, |
||
18 | Feature\ServiceProviderInterface |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 4 | public function init(ModuleManagerInterface $moduleManager) |
|
24 | { |
||
25 | /** @var ServiceManager $serviceManager */ |
||
26 | 4 | $serviceManager = $moduleManager->getEvent()->getParam('ServiceManager'); |
|
|
|||
27 | |||
28 | /** @var ServiceListenerInterface $serviceListener */ |
||
29 | 4 | $serviceListener = $serviceManager->get('ServiceListener'); |
|
30 | |||
31 | 4 | $serviceListener->addServiceManager( |
|
32 | 4 | DataMapper\Manager\DataMapperManager::class, |
|
33 | 4 | 'thorr_persistence_dmm', |
|
34 | 4 | DataMapper\Manager\DataMapperManagerConfigProviderInterface::class, |
|
35 | 'getDataMapperManagerConfig' |
||
36 | 4 | ); |
|
37 | 4 | } |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 4 | public function getServiceConfig() |
|
43 | { |
||
44 | return [ |
||
45 | 'factories' => [ |
||
46 | 4 | DataMapper\Manager\DataMapperManager::class => DataMapper\Manager\DataMapperManagerFactory::class, |
|
47 | 4 | ], |
|
48 | 'aliases' => [ |
||
49 | 4 | 'DataMapperManager' => DataMapper\Manager\DataMapperManager::class, |
|
50 | 4 | ], |
|
51 | 4 | ]; |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 4 | public function getValidatorConfig() |
|
66 | } |
||
67 |
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.