Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | 1 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
17 | { |
||
18 | 1 | if ($serviceLocator instanceof AbstractPluginManager) { |
|
19 | 1 | $serviceLocator = $serviceLocator->getServiceLocator(); |
|
20 | 1 | } |
|
21 | |||
22 | /** @var StorageInterface $storage */ |
||
23 | 1 | $storage = $serviceLocator->get('mxdiModule\Cache'); |
|
24 | |||
25 | 1 | return new CacheClearController($storage); |
|
26 | } |
||
27 | } |
||
28 |