Skip to content
docsv0.8.0

ConfigLoaderInterface

Loads application configuration from an arbitrary source. Implementations are agnostic to the origin of the configuration — a file path, an environment variable key, a remote URI, etc. — and resolve it on demand via `load()` instead of being coupled to it at construction time.

ConfigLoaderInterface::load()

abstract public function load(string $source): array

Loads and returns the configuration from the given source (a file path, env key, remote URI, or any other source identifier the implementation understands).

Parameters

Parameters of load()
NameTypeDescription
$sourcestring