Skip to content
Snippets Groups Projects
Commit 38bbe494 authored by Demian Katz's avatar Demian Katz
Browse files

Upgrade Zend-MVC.

parent 042800ca
No related merge requests found
This diff is collapsed.
......@@ -47,8 +47,7 @@ class RedirectController extends \Zend\Mvc\Controller\AbstractActionController
*/
protected function getUsage()
{
$strategy = $this->getServiceLocator()->get('ViewManager')
->getRouteNotFoundStrategy();
$strategy = $this->serviceLocator->get('ConsoleRouteNotFoundStrategy');
$event = $this->getEvent();
$event->setError(Application::ERROR_ROUTER_NO_MATCH);
$strategy->handleRouteNotFoundError($event);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment