Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
20 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
21 | { |
||
22 | $appConfig = $serviceLocator->get('Config'); |
||
23 | $config = []; |
||
24 | if (isset($appConfig['cron'])) { |
||
25 | $config = $appConfig['cron']; |
||
26 | } |
||
27 | |||
28 | return new Config( |
||
29 | $config, |
||
30 | new FileSystem() |
||
31 | ); |
||
32 | } |
||
33 | } |
||
34 |