Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 1 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
|
18 | { |
||
19 | 1 | $eventManager = $container->get('Application')->getEventManager(); |
|
20 | |||
21 | 1 | $event = new MvcEvent(); |
|
22 | 1 | $event->setApplication($container->get('Application')); |
|
23 | 1 | $event->setTarget($container->get('Application')); |
|
24 | 1 | $event->setRequest($container->get('Request')); |
|
25 | 1 | $event->setRouter($container->get('Router')); |
|
26 | |||
27 | 1 | $routeMatch = new RouteMatch(array()); |
|
28 | |||
29 | 1 | $event->setRouteMatch($routeMatch); |
|
30 | |||
31 | 1 | return new ControllerService($eventManager, $event); |
|
32 | } |
||
33 | } |
||
34 |