| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
| 26 | { |
||
| 27 | /* @var \Zend\Router\RouteMatch $routeMatch */ |
||
| 28 | $controller = new PurgeController(); |
||
| 29 | $application = $container->get('Application'); |
||
| 30 | $routeMatch = $application->getMvcEvent()->getRouteMatch(); |
||
| 31 | |||
| 32 | if ('index' != $routeMatch->getParam('action')) { |
||
| 33 | $events = $container->get('Core/EntityEraser/Load/Events'); |
||
| 34 | $controller->setLoadEvents($events); |
||
| 35 | } |
||
| 36 | |||
| 37 | |||
| 38 | return $controller; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |