Skip to content

Commit

Permalink
Merge pull request #8232 from kenjis/update-system-Config-files
Browse files Browse the repository at this point in the history
config: update system/Config/Routing.php
  • Loading branch information
kenjis authored Nov 19, 2023
2 parents 0344aa6 + ad6e3e1 commit 502be28
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Config/Publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string,string>
* @var array<string, string>
*/
public $restrictions = [
ROOTPATH => '*',
Expand Down
2 changes: 1 addition & 1 deletion system/Config/Publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string,string>
* @var array<string, string>
*/
public $restrictions = [
ROOTPATH => '*',
Expand Down
15 changes: 14 additions & 1 deletion system/Config/Routing.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Routing extends BaseConfig
* Default: APPPATH . 'Config/Routes.php'
*/
public array $routeFiles = [
APPPATH . 'Routes.php',
APPPATH . 'Config/Routes.php',
];

/**
Expand Down Expand Up @@ -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 = [];
}

0 comments on commit 502be28

Please sign in to comment.