rorier/config

Components to manage configuration.

0.2.5 2022-11-16 12:08 UTC

This package is auto-updated.

Last update: 2024-10-16 16:36:48 UTC


README

Storage object for complex data.

Howto init Parameters

$data = []

$delayedParameters = new ParametersProxy();

$parametersAnalyzer = new Analyzer([
    new ConstantParser(),
    new EnvParser(),
    new StringParameterParser($delayedParameters),
    new ArrayParameterParser($delayedParameters)
]);

$parameters = new Parameters($data, $parametersAnalyzer);

$delayedParameters->setParameters($parameters);