Archived
1
0
Fork 0

app/library/Services.php: in _initSharedRouter() setup not found route.

This commit is contained in:
Henrik Hautakoski 2023-04-30 16:46:53 +02:00
parent dd140ccd8a
commit a7a59b690a

View file

@ -336,6 +336,9 @@ class Services extends DiDefault
$router->add($def->get('pattern'), $path)
->setName($name);
}
$router->notFound(['controller' => 'error', 'action' => 'show404']);
return $router;
}