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