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:

  1. Application config (_config/ or MINI_CONFIG_ROOT)
  2. 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

NameTypeDefault
$filename string required
$default mixed NULL

Returns

mixed

Source

src/Mini.php:257-276