Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
29 | { |
||
30 | $appServiceLocator = $serviceLocator; |
||
31 | if ($serviceLocator instanceof AbstractPluginManager) { |
||
32 | $appServiceLocator = $serviceLocator->getServiceLocator(); |
||
33 | } |
||
34 | |||
35 | |||
36 | |||
37 | $serializerManager = $appServiceLocator->get('SerializerAdapterManager'); |
||
38 | $moduleOptions = $appServiceLocator->get(ModuleOptions::class); |
||
39 | $workflowService = $appServiceLocator->get(Workflow::class); |
||
40 | |||
41 | return new EntryToObjectsService( |
||
42 | [ |
||
43 | 'serializerManager' => $serializerManager, |
||
44 | 'moduleOptions' => $moduleOptions, |
||
45 | 'workflowService' => $workflowService |
||
46 | ] |
||
47 | ); |
||
48 | } |
||
49 | } |
||
50 |