Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
24 | { |
||
25 | /** @var array $config */ |
||
26 | $config = $serviceLocator->get('config'); |
||
27 | $config = isset($config['router']['routes']) ? $config['router']['routes'] : []; |
||
28 | |||
29 | /** @var RouteInterface $router */ |
||
30 | $router = $serviceLocator->get('router'); |
||
31 | |||
32 | return new RoutesInspector($router, $config); |
||
33 | } |
||
34 | } |
||
35 |