Introduction
This package supplies a laminas-config-aggregator post processor that consumes the Symfony DependencyInjection ParameterBag in order to allow users to define parameters to re-use within their configuration.
As an example, one could define an API key, cache path, or other common filesystem location once as a parameter, and then refer to that parameter multiple times within the configuration, in order to simplify updates to the value.
Parameters are referenced within configuration using %name%
notation.
Parameters may be defined as nested associative arrays as well; in such cases, a
.
character references an additional layer of hierarchy to dereference:
%foo.bar%
refers to the paramter found at 'foo' => [ 'bar' => 'value' ]
.
Available since version 1.1.0
Parameters which reference other parameters can also be used.