mini\Mini::loadConfig()
public
Documentation
Load a configuration file using the path registry system.
Searches for the config file in registered paths with priority ordering:
- Application config (_config/ or MINI_CONFIG_ROOT)
- Framework config (vendor/fubber/mini/config/)
This allows applications to override framework defaults and supports plugin/bundle architectures where multiple packages can contribute config files.
Signature
public function loadConfig(string $filename, mixed $default = NULL): mixed
Parameters
| Name | Type | Default |
|---|---|---|
$filename
|
string |
required |
$default
|
mixed |
NULL
|
Returns
mixed