| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 32 | { |
||
| 33 | $appServiceLocator = $serviceLocator; |
||
| 34 | if ($serviceLocator instanceof AbstractPluginManager) { |
||
| 35 | $appServiceLocator = $serviceLocator->getServiceLocator(); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** @var DoctrineObjectManager $doctrineObjectManager */ |
||
| 39 | $doctrineObjectManager = $appServiceLocator->get(DoctrineObjectManager::class); |
||
| 40 | |||
| 41 | /** @var EntityMapCacheInterface $entityMapCache */ |
||
| 42 | $entityMapCache = $appServiceLocator->get(EntityMapCacheInterface::class); |
||
| 43 | |||
| 44 | return new EntityMapBuilderController($doctrineObjectManager, $entityMapCache); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |