Skip to content

Feature Request : support the db config instead of .env while the core is initialzed #1618

Description

@TatwiraT

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

  • OS: Win/Linux
  • Apache/Nginx
  • PHP version : 7x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions