class Processor
This class is the entry point for config normalization/merging/finalization.
array | process(NodeInterface $configTree, array $configs) Processes an array of configurations. | |
array | processConfiguration(ConfigurationInterface $configuration, array $configs) Processes an array of configurations. | |
static array | normalizeConfig(array $config, string $key, string $plural = null) Normalizes a configuration entry. |
Processes an array of configurations.
NodeInterface | $configTree | The node tree describing the configuration |
array | $configs | An array of configuration items to process |
array | The processed configuration |
Processes an array of configurations.
ConfigurationInterface | $configuration | The configuration class |
array | $configs | An array of configuration items to process |
array | The processed configuration |
Normalizes a configuration entry.
This method returns a normalize configuration array for a given key to remove the differences due to the original format (YAML and XML mainly).
Here is an example.
The configuration in XML:
And the same configuration in YAML:
extensions: ['twig.extension.foo', 'twig.extension.bar']
array | $config | A config array |
string | $key | The key to normalize |
string | $plural | The plural form of the key if it is irregular |
array |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/Definition/Processor.html