Config class
Managing the configurations
| package | Default |
|---|
create(string|null $env = null) : void
Load the configurations from CONFIG_DIR/config-config-$env.php. If the environment is not specified, load the configurations from CONFIG_DIR/config.php. Environment-independent configurations are defined in CONFIG_DIR/config-common.php.
stringnullenvironment
\Exception |
thrown when the configuration file does not exist |
|---|
get(string|null $key= null, mixed $default= null) : mixed
If no key is specified, all configurations are returned. If the key is passed dot-delimited, it is interpreted as an array path.
stringnullconfiguration key
mixeddefault value if there is no value specified in the key
mixedconfigurations$config : \Kore\array<mixed>
An array of configuration values loaded from the configuration file.