Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
29 | { |
||
30 | $context = $this->getCreationOptions(); |
||
31 | |||
32 | |||
33 | $appServiceLocator = $serviceLocator instanceof AbstractPluginManager ? $serviceLocator->getServiceLocator() : $serviceLocator; |
||
34 | |||
35 | /** @var ResourceLoaderServiceInterface $resourceLoaderService */ |
||
36 | $resourceLoaderService = $appServiceLocator->get(ResourceLoaderServiceInterface::class); |
||
37 | |||
38 | $resourceLoaderInitializer = new ResourceLoaderInitializer($resourceLoaderService); |
||
39 | $resourceLoaderInitializer->setContextData($context); |
||
40 | |||
41 | return $resourceLoaderInitializer; |
||
42 | } |
||
43 | } |
||
44 |