We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22374e6 commit 25ad77eCopy full SHA for 25ad77e
src/Providers/RouterProvider.php
@@ -39,6 +39,7 @@ public function register(DiInterface $di): void
39
40
$router = new AnnotationsRouter(false);
41
$router->removeExtraSlashes(true);
42
+ $router->notFound(['controller' => 'error', 'action' => 'route404']);
43
$router->setDefaultAction('index');
44
$router->setDefaultController('index');
45
$router->setDefaultNamespace('Phalcon\DevTools\Web\Tools\Controllers');
@@ -63,7 +64,6 @@ public function register(DiInterface $di): void
63
64
}
65
66
$router->setEventsManager($em);
- $router->notFound(['controller' => 'error', 'action' => 'route404']);
67
68
return $router;
69
});
0 commit comments