mini\Mini::loadServiceConfig()
public
Documentation
Load service configuration by class name using path registry.
Converts class name to config file path by replacing namespace separators with directory separators:
- PDO → '_config/PDO.php'
- Psr\SimpleCache\CacheInterface → '_config/Psr/SimpleCache/CacheInterface.php'
- mini\UUID\FactoryInterface → '_config/mini/UUID/FactoryInterface.php'
Uses the path registry system, so application configs (_config/) take precedence over framework defaults (vendor/fubber/mini/config/).
Signature
public function loadServiceConfig(string $className, mixed $default = NULL): mixed
Parameters
| Name | Type | Default |
|---|---|---|
$className
|
string |
required |
$default
|
mixed |
NULL
|
Returns
mixed