-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: config()
can't load Config file in a module if there is a Config file with the same name
#5356
Comments
This is intentional. For Config files specifically I would consider two instances of the same shortname to be a conflict (assuming one does not extend the other) that a developer should resolve. Modules that need to override or add to known configurations in app/ should use Registrars. |
PHP Version
8.0
CodeIgniter4 Version
develop
(0aa542b)Which operating systems have you tested for this bug?
macOS
Which server did you use?
cli-server (PHP built-in webserver)
Database
No response
What happened?
config()
can't load Config file in a module if there is a Config file with the same name.Steps to Reproduce
Configure
'Acme\Blog
namespace:Create
acme/Blog/Config/Blog.php
:Create
app/Config/Blog.php
:Create
acme/Blog/Config/Routes.php
:Create
acme/Blog/Controllers/Blog.php
:Run
php spark serve
.Navigate to http://localhost:8080/blog
You see
app/Config/Blog
.Expected Output
My Great Site
Anything else?
No response
The text was updated successfully, but these errors were encountered: