Interface

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\HookableConfigurationMapperInterface

interface HookableConfigurationMapperInterface implements ConfigurationMapperInterface

Interface of ConfigurationMapper objects that need to trigger actions before and/or after looping over available scopes for mapping.

Methods

mapConfig(array $scopeSettings, string $currentScope, ContextualizerInterface $contextualizer)

Does semantic config to internal container parameters mapping for $currentScope.

from ConfigurationMapperInterface
mixed preMap(array $config, ContextualizerInterface $contextualizer)

This method is called by the ConfigurationProcessor before looping over available scopes.

mixed postMap(array $config, ContextualizerInterface $contextualizer)

This method is called by the ConfigurationProcessor after looping over available scopes.

Details

public mapConfig(array $scopeSettings, string $currentScope, ContextualizerInterface $contextualizer)

Does semantic config to internal container parameters mapping for $currentScope.

This method is called by the ConfigurationProcessor, for each available scopes (e.g. SiteAccess, SiteAccess groups or "global").

Parameters

array $scopeSettings Parsed semantic configuration for current scope. It is passed by reference, making it possible to alter it for usage after mapConfig() has run.
string $currentScope
ContextualizerInterface $contextualizer

at line 29
public mixed preMap(array $config, ContextualizerInterface $contextualizer)

This method is called by the ConfigurationProcessor before looping over available scopes.

You may here use $contextualizer->mapConfigArray().

Parameters

array $config Complete parsed semantic configuration
ContextualizerInterface $contextualizer

Return Value

mixed

See also

ConfigurationProcessor::mapConfig()
ContextualizerInterface::mapConfigArray()

at line 43
public mixed postMap(array $config, ContextualizerInterface $contextualizer)

This method is called by the ConfigurationProcessor after looping over available scopes.

You may here use $contextualizer->mapConfigArray().

Parameters

array $config Complete parsed semantic configuration
ContextualizerInterface $contextualizer

Return Value

mixed

See also

ConfigurationProcessor::mapConfig()
ContextualizerInterface::mapConfigArray()