eZPublishCommunityProject  2012.12
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension Class Reference
+ Inheritance diagram for eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension:
+ Collaboration diagram for eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension:

Public Member Functions

 __construct (array $configParsers=array())
 
 getAlias ()
 
 getConfiguration (array $config, ContainerBuilder $container)
 
 load (array $configs, ContainerBuilder $container)
 Loads a specific configuration. More...
 

Private Member Functions

 fixUpConfiguration (array &$config)
 Applies the workaround for http://jira.ez.no/browse/EZP-20107. More...
 
 fixUpKeyReference (&$configuration)
 Prefixes keys from $configuration that are affected by http://jira.ez.no/browse/EZP-20107 with an underscore and returns the list of modified keys (original values) More...
 
 handleApiLoading (ContainerBuilder $container, FileLoader $loader)
 Handle public API loading. More...
 
 handleCache (array $config, ContainerBuilder $container, FileLoader $loader)
 Handle cache parameters. More...
 
 handleRouting (ContainerBuilder $container, FileLoader $loader)
 Handle routing parameters. More...
 
 handleSessionLoading (ContainerBuilder $container, FileLoader $loader)
 Handle session parameters. More...
 
 handleTemplating (ContainerBuilder $container, FileLoader $loader)
 Handle templating parameters. More...
 
 processFixedUpKeyReference (array $keyReferencesArray, &$configReference)
 Recursively scans through an n dimension array of keys, ending up with a true value, and for those keys, cancels the changes done by {. More...
 
 registerImageMagickConfiguration (array $config, ContainerBuilder $container)
 
 registerSiteAccessConfiguration (array $config, ContainerBuilder $container)
 
 unFixUpConfiguration (array &$config)
 Undoes the changes done by {. More...
 

Private Attributes

 $configParsers
 
 $fixedUpKeys = array()
 

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::__construct ( array  $configParsers = array())

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::fixUpConfiguration ( array &  $config)
private

Applies the workaround for http://jira.ez.no/browse/EZP-20107.

Prefixes affected keys (siteaccess map matching, override rules, image variations names) that contain a dash with an underscore so that the symfony normalize method (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Config/Definition/Processor.php#L55) doesn't replace dashes with underscores

Parameters
array$configRaw configuration array

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::fixUpKeyReference ( $configuration)
private

Prefixes keys from $configuration that are affected by http://jira.ez.no/browse/EZP-20107 with an underscore and returns the list of modified keys (original values)

Workaround for http://jira.ez.no/browse/EZP-20107

Parameters
array$configuration
Returns
array

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\fixUpConfiguration().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::getAlias ( )
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::getConfiguration ( array  $config,
ContainerBuilder  $container 
)
Parameters
array$config
\Symfony\Component\DependencyInjection\ContainerBuilder$container
Returns

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::handleApiLoading ( ContainerBuilder  $container,
FileLoader  $loader 
)
private

Handle public API loading.

Parameters
\Symfony\Component\DependencyInjection\ContainerBuilder$container
\Symfony\Component\DependencyInjection\Loader\FileLoader$loader

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::handleCache ( array  $config,
ContainerBuilder  $container,
FileLoader  $loader 
)
private

Handle cache parameters.

Parameters
array$config
\Symfony\Component\DependencyInjection\ContainerBuilder$container
\Symfony\Component\DependencyInjection\Loader\FileLoader$loader
Exceptions
\InvalidArgumentException
Returns
void

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::handleRouting ( ContainerBuilder  $container,
FileLoader  $loader 
)
private

Handle routing parameters.

Parameters
\Symfony\Component\DependencyInjection\ContainerBuilder$container
\Symfony\Component\DependencyInjection\Loader\FileLoader$loader

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::handleSessionLoading ( ContainerBuilder  $container,
FileLoader  $loader 
)
private

Handle session parameters.

Parameters
\Symfony\Component\DependencyInjection\ContainerBuilder$container
\Symfony\Component\DependencyInjection\Loader\FileLoader$loader

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::handleTemplating ( ContainerBuilder  $container,
FileLoader  $loader 
)
private

Handle templating parameters.

Parameters
\Symfony\Component\DependencyInjection\ContainerBuilder$container
\Symfony\Component\DependencyInjection\Loader\FileLoader$loader

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::load ( array  $configs,
ContainerBuilder  $container 
)

Loads a specific configuration.

Parameters
mixed[]$configs An array of configuration values
\Symfony\Component\DependencyInjection\ContainerBuilder$containerA ContainerBuilder instance
Exceptions
\InvalidArgumentExceptionWhen provided tag is not defined in this extension
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::processFixedUpKeyReference ( array  $keyReferencesArray,
$configReference 
)
private

Recursively scans through an n dimension array of keys, ending up with a true value, and for those keys, cancels the changes done by {.

See Also
fixedUpConfiguration}. The method pops the keys out of $keyReferenceArray in order to dive into $configReference until it finds out the modified value, and restores it when found

Workaround for http://jira.ez.no/browse/EZP-20107

Parameters
array$keyReferencesArrayKeys array to process $array[keya][keyb] = true
array$configReferenceConfiguration array

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\unFixUpConfiguration().

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::registerImageMagickConfiguration ( array  $config,
ContainerBuilder  $container 
)
private
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::registerSiteAccessConfiguration ( array  $config,
ContainerBuilder  $container 
)
private
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::unFixUpConfiguration ( array &  $config)
private

Undoes the changes done by {.

See Also
fixUpConfiguration()}

Workaround for http://jira.ez.no/browse/EZP-20107

Parameters
array$config

Referenced by eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension\load().

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::$configParsers
private
eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension::$fixedUpKeys = array()
private

The documentation for this class was generated from the following file: