Class

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension

class EzPublishCoreExtension extends Extension implements PrependExtensionInterface

Constants

RICHTEXT_CUSTOM_TAGS_PARAMETER

Methods

__construct(array $configParsers = array())

getAlias()

load(array $configs, ContainerBuilder $container)

Loads a specific configuration.

Configuration getConfiguration(array $config, ContainerBuilder $container)

prepend(ContainerBuilder $container)

addPolicyProvider(PolicyProviderInterface $policyProvider)

Adds a new policy provider to the internal collection.

addConfigParser(ParserInterface $configParser)

Adds a new config parser to the internal collection.

addDefaultSettings(string $fileLocation, array $files)

Adds new default settings to the internal collection.

addSiteAccessConfigurationFilter(SiteAccessConfigurationFilter $filter)

Details

at line 67
public __construct(array $configParsers = array())

Parameters

array $configParsers

at line 73
public getAlias()

at line 88
public load(array $configs, ContainerBuilder $container)

Loads a specific configuration.

Parameters

array $configs An array of configuration values
ContainerBuilder $container A ContainerBuilder instance

Exceptions

InvalidArgumentException When provided tag is not defined in this extension

at line 156
public Configuration getConfiguration(array $config, ContainerBuilder $container)

Parameters

array $config
ContainerBuilder $container

Return Value

Configuration

at line 497
public prepend(ContainerBuilder $container)

Parameters

ContainerBuilder $container

at line 522
public addPolicyProvider(PolicyProviderInterface $policyProvider)

Adds a new policy provider to the internal collection.

One can call this method from a bundle build() method.

php public function build(ContainerBuilder $container) { $ezExtension = $container->getExtension('ezpublish'); $ezExtension->addPolicyProvider($myPolicyProvider); }

Parameters

PolicyProviderInterface $policyProvider

at line 543
public addConfigParser(ParserInterface $configParser)

Adds a new config parser to the internal collection.

One can call this method from a bundle build() method.

php public function build(ContainerBuilder $container) { $ezExtension = $container->getExtension('ezpublish'); $ezExtension->addConfigParser($myConfigParser); }

Parameters

ParserInterface $configParser

at line 568
public addDefaultSettings(string $fileLocation, array $files)

Adds new default settings to the internal collection.

One can call this method from a bundle build() method.

php public function build(ContainerBuilder $container) { $ezExtension = $container->getExtension('ezpublish'); $ezExtension->addDefaultSettings( __DIR__ . '/Resources/config', ['default_settings.yml'] ); }

Parameters

string $fileLocation
array $files

at line 573
public addSiteAccessConfigurationFilter(SiteAccessConfigurationFilter $filter)

Parameters

SiteAccessConfigurationFilter $filter