Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
26 | { |
||
27 | $appServiceLocator = $serviceLocator; |
||
28 | if ($serviceLocator instanceof AbstractPluginManager) { |
||
29 | $appServiceLocator = $serviceLocator->getServiceLocator(); |
||
30 | } |
||
31 | |||
32 | |||
33 | /** @var EntryToObjectsService $entryToObjectsService */ |
||
34 | $entryToObjectsService = $appServiceLocator->get(EntryToObjectsService::class); |
||
35 | |||
36 | $options = [ |
||
37 | 'entryToObjectsService' => $entryToObjectsService |
||
38 | ]; |
||
39 | |||
40 | return new EntryToObjectsControllerPlugin($options); |
||
41 | } |
||
42 | } |
||
43 |