class Processor
This class is the entry point for config normalization/merging/finalization.
Methods
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. |
Details
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.
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:
twig.extension.footwig.extension.bar
And the same configuration in YAML:
extensions: ['twig.extension.foo', 'twig.extension.bar']
Please login to continue.