Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 9 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
26 | { |
||
27 | /** @var array $config */ |
||
28 | 9 | $config = $serviceLocator->get('config'); |
|
29 | 9 | $config = isset($config['router']['routes']) ? $config['router']['routes'] : []; |
|
30 | |||
31 | 9 | $builder = new RouteCollectionBuilder($config); |
|
32 | |||
33 | 9 | return $builder->build(); |
|
34 | } |
||
35 | } |
||
36 |