PHP Класс eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationProcessor

Use it when you want to map SiteAccess dependent semantic configuration to internal settings, readable with the ConfigResolver.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$availableSiteAccesses array Registered configuration scopes.
$contextualizer eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface
$groupsBySiteAccess array Registered scope groups names, indexed by scope.
$scopeNodeName string Name of the node under which scope based (semantic) configuration takes place.

Открытые методы

Метод Описание
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $containerBuilder, $namespace, $siteAcccessNodeName = 'system' )
getContextualizer ( ) : eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface
mapConfig ( array $config, eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationMapperInterface | callable $mapper ) Triggers mapping process between semantic and internal configuration.
mapConfigArray ( string $id, array $config, integer $options ) Proxy to Contextualizer::mapConfigArray().
mapSetting ( string $id, array $config ) Proxy to Contextualizer::mapSetting().
setAvailableSiteAccesses ( array $availableSiteAccesses ) Injects available SiteAccesses.
setContextualizer ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface $contextualizer )
setGroupsBySiteAccess ( array $groupsBySiteAccess ) Injects available scope groups, indexed by scope.

Защищенные методы

Метод Описание
buildContextualizer ( Symfony\Component\DependencyInjection\ContainerInterface $containerBuilder, string $namespace, string $siteAccessNodeName ) : eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface Builds configuration contextualizer (I know, sounds obvious.

Описание методов

__construct() публичный Метод

public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $containerBuilder, $namespace, $siteAcccessNodeName = 'system' )
$containerBuilder Symfony\Component\DependencyInjection\ContainerInterface

buildContextualizer() защищенный Метод

..). Override this method if you want to use your own contextualizer class. static::$scopes and static::$groupsByScope must be injected first.
protected buildContextualizer ( Symfony\Component\DependencyInjection\ContainerInterface $containerBuilder, string $namespace, string $siteAccessNodeName ) : eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface
$containerBuilder Symfony\Component\DependencyInjection\ContainerInterface
$namespace string
$siteAccessNodeName string
Результат eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface

getContextualizer() публичный Метод

public getContextualizer ( ) : eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface
Результат eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface

mapConfig() публичный Метод

Triggers mapping process between semantic and internal configuration.
public mapConfig ( array $config, eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationMapperInterface | callable $mapper )
$config array Parsed semantic configuration
$mapper eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ConfigurationMapperInterface | callable Mapper to use. Can be either an instance of ConfigurationMapper or a callable. HookableConfigurationMapper can also be used. In this case, preMap() and postMap() will be also called respectively before and after the mapping loop. If $mapper is a callable, the same arguments as defined in the signature defined in ConfigurationMapper interface will be passed: `array $scopeSettings, $currentScope, ContextualizerInterface $contextualizer`

mapConfigArray() публичный Метод

Proxy to Contextualizer::mapConfigArray().
См. также: ContextualizerInterface::mapConfigArray()
public mapConfigArray ( string $id, array $config, integer $options )
$id string Id of the setting array to map.
$config array Full semantic configuration array for current bundle.
$options integer Bit mask of options (See constants of `ContextualizerInterface`)

mapSetting() публичный Метод

Proxy to Contextualizer::mapSetting().
См. также: ContextualizerInterface::mapSetting()
public mapSetting ( string $id, array $config )
$id string Id of the setting to map.
$config array Full semantic configuration array for current bundle.

setAvailableSiteAccesses() публичный статический Метод

Important: Available SiteAccesses need to be set before ConfigurationProcessor to be constructed by a bundle to set its configuration up.
public static setAvailableSiteAccesses ( array $availableSiteAccesses )
$availableSiteAccesses array

setContextualizer() публичный Метод

public setContextualizer ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface $contextualizer )
$contextualizer eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface

setGroupsBySiteAccess() публичный статический Метод

Important: Groups need to be set before ConfigurationProcessor to be constructed by a bundle to set its configuration up.
public static setGroupsBySiteAccess ( array $groupsBySiteAccess )
$groupsBySiteAccess array

Описание свойств

$availableSiteAccesses защищенное статическое свойство

Registered configuration scopes.
protected static array $availableSiteAccesses
Результат array

$contextualizer защищенное свойство

protected ContextualizerInterface,eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware $contextualizer
Результат eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface

$groupsBySiteAccess защищенное статическое свойство

Registered scope groups names, indexed by scope.
protected static array $groupsBySiteAccess
Результат array

$scopeNodeName защищенное свойство

Name of the node under which scope based (semantic) configuration takes place.
protected string $scopeNodeName
Результат string