| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 27 | { |
||
| 28 | $appServiceLocator = $serviceLocator instanceof AbstractPluginManager ? $serviceLocator->getServiceLocator() : $serviceLocator; |
||
| 29 | |||
| 30 | /** @var ModuleOptionsPluginManagerInterface $moduleOptionsPluginManager */ |
||
| 31 | $moduleOptionsPluginManager = $appServiceLocator->get(ModuleOptionsPluginManagerInterface::class); |
||
| 32 | |||
| 33 | /** @var ModuleOptions $moduleOptions */ |
||
| 34 | $moduleOptions = $moduleOptionsPluginManager->get(ModuleOptions::class); |
||
| 35 | |||
| 36 | $entityLocatorServiceName = $moduleOptions->getEntityLocator(); |
||
| 37 | |||
| 38 | /** @var ContainerInterface $entityLocator */ |
||
| 39 | $entityLocator = $serviceLocator->get($entityLocatorServiceName); |
||
| 40 | |||
| 41 | return new ImportEngine($entityLocator); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |