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