Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 5 | ||
Bugs | 0 | Features | 5 |
1 | <?php |
||
30 | 1 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
31 | { |
||
32 | /* @var ControllerManager $serviceLocator */ |
||
33 | 1 | $mainServiceLocator = $serviceLocator->getServiceLocator(); |
|
34 | /** @var RouteCollection $routeCollection */ |
||
35 | 1 | $routeCollection = $mainServiceLocator->get(RouteCollectionFactory::SERVICE_NAME); |
|
36 | /** @var RouteMatcher $routeMatcher */ |
||
37 | 1 | $routeMatcher = $mainServiceLocator->get(RouteMatcherFactory::SERVICE_NAME); |
|
38 | |||
39 | 1 | return new RoutesController($routeCollection, $routeMatcher); |
|
40 | } |
||
41 | } |
||
42 |