-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Inspired by #1070:
- new
CodeIgniter\Config\Configclass with one public static method:get(). This takes a class name and returns an instance of the class. - By default it returns a shared instance, but a new instance can be returned by setting the second parameter to
false, just like the Services class. - If the config name is fully qualified (
Config\App) it will simply try to instantiate/cache and return. - If the config name does not include the namespace (
App), it will attempt to discover the class similar to way the Services class does, though don't discover and preload all of them, just as requested. - new helper method,
config()that is just a slightly nicer way of callingCodeIgniter\Config\Config::get().
Metadata
Metadata
Assignees
Labels
No labels