mini\Mini::loadServiceConfig() Method

public

Signature

public function loadServiceConfig(string $className, mixed $default = NULL): mixed

Parameters

Name Type Default Description
$className string required Documentation missing
$default mixed NULL Documentation missing

Returns

mixed

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/).

Source

src/Mini.php:294-297