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.
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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