-
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
Feature Request : support the db config instead of .env while the core is initialzed #1618
Comments
I'm confused on what exactly you're wanting to do. The .env file seems to solve what you're asking for. Could yo provide more concrete details? |
that would be an awesome feature 👍 His point is to use database stored configuration - like App.php variables loaded from database instead of local file |
@puschie286 explained exactly what I want to say due to my bad English ^^ |
@TatwiraT |
That's something we can look into, and I can see it being handy to provide some other type of method for that. However, we're not doing any new features at the moment, so this will have to be looked at after 4.0 final for a 4.1 release. |
@puschie286 Yes, we drink from the same mug ^^ |
While I think this could be a nice feature, I am not convinced it needs to be part of the core. I've implemented something like this in the past for CI3 and it's fairly trivial to do. Seems like a good target for a third-party library. It's also something I've tossed around doing as a semi-official addon, but haven't had a chance just yet. |
name: Feature Request
about: It would be a great thing if, the core initializator take custom config instead those of env or app
Describe the bug
I used to use the db table settings as the main for the core initializator, to avoid editing Config/App.php every time i change the server or domain or any other extra-param that I need to use on runtime .
Usine a base controller is fine a bit, but the baseURL is not overwrite because the \CodeIgniter initializator take as params the Config\App before any initialization of other dependencies including DB instance.
CodeIgniter 4 version
All
Affected module(s)
CodeIgniter Initializator
Expected behavior, and steps to reproduce if appropriate
autoloading some custom db table configs to overwrite the app before any other dependencies that can be used globaly
Context
The text was updated successfully, but these errors were encountered: