Skip to content

Commit 502be28

Browse files
authored
Merge pull request #8232 from kenjis/update-system-Config-files
config: update system/Config/Routing.php
2 parents 0344aa6 + ad6e3e1 commit 502be28

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

app/Config/Publisher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Publisher extends BasePublisher
1919
* result in a PublisherException. Files that do no fit the
2020
* pattern will cause copy/merge to fail.
2121
*
22-
* @var array<string,string>
22+
* @var array<string, string>
2323
*/
2424
public $restrictions = [
2525
ROOTPATH => '*',

system/Config/Publisher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Publisher extends BaseConfig
2626
* result in a PublisherException. Files that do no fit the
2727
* pattern will cause copy/merge to fail.
2828
*
29-
* @var array<string,string>
29+
* @var array<string, string>
3030
*/
3131
public $restrictions = [
3232
ROOTPATH => '*',

system/Config/Routing.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Routing extends BaseConfig
2424
* Default: APPPATH . 'Config/Routes.php'
2525
*/
2626
public array $routeFiles = [
27-
APPPATH . 'Routes.php',
27+
APPPATH . 'Config/Routes.php',
2828
];
2929

3030
/**
@@ -95,4 +95,17 @@ class Routing extends BaseConfig
9595
* Default: false
9696
*/
9797
public bool $prioritize = false;
98+
99+
/**
100+
* Map of URI segments and namespaces. For Auto Routing (Improved).
101+
*
102+
* The key is the first URI segment. The value is the controller namespace.
103+
* E.g.,
104+
* [
105+
* 'blog' => 'Acme\Blog\Controllers',
106+
* ]
107+
*
108+
* @var array [ uri_segment => namespace ]
109+
*/
110+
public array $moduleRoutes = [];
98111
}

0 commit comments

Comments
 (0)