app/library/Services.php: in _initSharedRouter() setup not found route.
This commit is contained in:
parent
dd140ccd8a
commit
a7a59b690a
1 changed files with 3 additions and 0 deletions
|
|
@ -336,6 +336,9 @@ class Services extends DiDefault
|
||||||
$router->add($def->get('pattern'), $path)
|
$router->add($def->get('pattern'), $path)
|
||||||
->setName($name);
|
->setName($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$router->notFound(['controller' => 'error', 'action' => 'show404']);
|
||||||
|
|
||||||
return $router;
|
return $router;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue