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