From 60042fba17267e56a8879e80498825c20ed30c87 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 31 Jan 2024 20:47:33 +0900 Subject: [PATCH] docs: fix doc comments I think there is no way to set 404 closure in the constructor. --- app/Config/Routing.php | 5 ++--- system/Config/Routing.php | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/Config/Routing.php b/app/Config/Routing.php index 8d3c773157cf..c0234da8df91 100644 --- a/app/Config/Routing.php +++ b/app/Config/Routing.php @@ -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 diff --git a/system/Config/Routing.php b/system/Config/Routing.php index e6d25138f8f0..5f5d9db620a4 100644 --- a/system/Config/Routing.php +++ b/system/Config/Routing.php @@ -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