Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | 4 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
32 | { |
||
33 | 4 | if ($serviceLocator instanceof AbstractPluginManager) { |
|
34 | 3 | $serviceLocator = $serviceLocator->getServiceLocator(); |
|
35 | 3 | } |
|
36 | |||
37 | /** @var SharedEventManagerInterface $sharedEventManager */ |
||
38 | 4 | $sharedEventManager = $serviceLocator->get('SharedEventManager'); |
|
39 | |||
40 | 4 | $em = new EventManager(); |
|
41 | 4 | $em->setSharedManager($sharedEventManager); |
|
|
|||
42 | 4 | return $em; |
|
43 | } |
||
44 | } |
||
45 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.