final class ConfigFileLoader (View source)

Loads typed configuration definitions from PHP and YAML source files.

Constants

private CONFIG_MAP_FILE

Methods

load(string $file, string|null $rootKey = null)

Loads one typed configuration definition from a source file.

loadWithMetadata(string $file, string|null $rootKey = null)

Loads one definition together with the environment and source metadata it consumed.

Details

load

ConfigDefinitionInterface load(string $file, string|null $rootKey = null)

Loads one typed configuration definition from a source file.

Parameters

string $file
string|null $rootKey

Return Value

ConfigDefinitionInterface

loadWithMetadata

LoadedConfigFile loadWithMetadata(string $file, string|null $rootKey = null)

Loads one definition together with the environment and source metadata it consumed.

Parameters

string $file
string|null $rootKey

Return Value

LoadedConfigFile