Skip to content

Commit 25ad77e

Browse files
committed
Enable and fix notFound() method in router provider
1 parent 22374e6 commit 25ad77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/RouterProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function register(DiInterface $di): void
3939

4040
$router = new AnnotationsRouter(false);
4141
$router->removeExtraSlashes(true);
42+
$router->notFound(['controller' => 'error', 'action' => 'route404']);
4243
$router->setDefaultAction('index');
4344
$router->setDefaultController('index');
4445
$router->setDefaultNamespace('Phalcon\DevTools\Web\Tools\Controllers');
@@ -63,7 +64,6 @@ public function register(DiInterface $di): void
6364
}
6465

6566
$router->setEventsManager($em);
66-
$router->notFound(['controller' => 'error', 'action' => 'route404']);
6767

6868
return $router;
6969
});

0 commit comments

Comments
 (0)