From 7c0024a10002b3d0532ea4a03ac8a6cf5a49c06e Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 19 Nov 2023 09:42:07 +0900 Subject: [PATCH 1/2] docs: add space after comma --- app/Config/Publisher.php | 2 +- system/Config/Publisher.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Config/Publisher.php b/app/Config/Publisher.php index 47475112c080..bf03be1db7e0 100644 --- a/app/Config/Publisher.php +++ b/app/Config/Publisher.php @@ -19,7 +19,7 @@ class Publisher extends BasePublisher * result in a PublisherException. Files that do no fit the * pattern will cause copy/merge to fail. * - * @var array + * @var array */ public $restrictions = [ ROOTPATH => '*', diff --git a/system/Config/Publisher.php b/system/Config/Publisher.php index fa04e24cd28f..d5f938e09be3 100644 --- a/system/Config/Publisher.php +++ b/system/Config/Publisher.php @@ -26,7 +26,7 @@ class Publisher extends BaseConfig * result in a PublisherException. Files that do no fit the * pattern will cause copy/merge to fail. * - * @var array + * @var array */ public $restrictions = [ ROOTPATH => '*', From ad6e3e141b6201788cce9b0d351411bf47e19669 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 19 Nov 2023 09:42:30 +0900 Subject: [PATCH 2/2] config: update system/Config/Routing This should be the same as Config\Routing. --- system/Config/Routing.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/system/Config/Routing.php b/system/Config/Routing.php index 409bcf099f65..e6d25138f8f0 100644 --- a/system/Config/Routing.php +++ b/system/Config/Routing.php @@ -24,7 +24,7 @@ class Routing extends BaseConfig * Default: APPPATH . 'Config/Routes.php' */ public array $routeFiles = [ - APPPATH . 'Routes.php', + APPPATH . 'Config/Routes.php', ]; /** @@ -95,4 +95,17 @@ class Routing extends BaseConfig * Default: false */ public bool $prioritize = false; + + /** + * Map of URI segments and namespaces. For Auto Routing (Improved). + * + * The key is the first URI segment. The value is the controller namespace. + * E.g., + * [ + * 'blog' => 'Acme\Blog\Controllers', + * ] + * + * @var array [ uri_segment => namespace ] + */ + public array $moduleRoutes = []; }