Skip to content

Commit 60042fb

Browse files
committed
docs: fix doc comments
I think there is no way to set 404 closure in the constructor.
1 parent f95f997 commit 60042fb

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

app/Config/Routing.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,12 @@ class Routing extends BaseRouting
6363

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

system/Config/Routing.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ class Routing extends BaseConfig
6161

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

0 commit comments

Comments
 (0)