Skip to content

Commit

Permalink
docs: fix doc comments
Browse files Browse the repository at this point in the history
I think there is no way to set 404 closure in the constructor.
  • Loading branch information
kenjis committed Jan 31, 2024
1 parent f95f997 commit 60042fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/Config/Routing.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ class Routing extends BaseRouting

/**
* Sets the class/method that should be called if routing doesn't
* find a match. It can be either a closure or the controller/method
* name exactly like a route is defined: Users::index
* find a match. It can be the controller/method name like: Users::index
*
* This setting is passed to the Router class and handled there.
*
* If you want to use a closure, you will have to set it in the
* class constructor or the routes file by calling:
* routes file by calling:
*
* $routes->set404Override(function() {
* // Do something here
Expand Down
5 changes: 2 additions & 3 deletions system/Config/Routing.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,12 @@ class Routing extends BaseConfig

/**
* Sets the class/method that should be called if routing doesn't
* find a match. It can be either a closure or the controller/method
* name exactly like a route is defined: Users::index
* find a match. It can be the controller/method name like: Users::index
*
* This setting is passed to the Router class and handled there.
*
* If you want to use a closure, you will have to set it in the
* class constructor or the routes file by calling:
* routes file by calling:
*
* $routes->set404Override(function() {
* // Do something here
Expand Down

0 comments on commit 60042fb

Please sign in to comment.