PHP Class eZ\Bundle\EzPublishCoreBundle\DependencyInjection\EzPublishCoreExtension

Inheritance: extends Symfony\Component\HttpKernel\DependencyInjection\Extension, implements Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface
Mostrar archivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__construct ( array $configParsers = [] )
addConfigParser ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ParserInterface $configParser ) Adds a new config parser to the internal collection.
addDefaultSettings ( string $fileLocation, array $files ) Adds new default settings to the internal collection.
addPolicyProvider ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Security\PolicyProvider\PolicyProviderInterface $policyProvider ) Adds a new policy provider to the internal collection.
getAlias ( )
getConfiguration ( array $config, ContainerBuilder $container ) : Configuration
load ( array $configs, ContainerBuilder $container ) Loads a specific configuration.
prepend ( ContainerBuilder $container )

Private Methods

Method Description
buildPolicyMap ( ContainerBuilder $container )
getMainConfigParser ( ) : eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ParserInterface
handleApiLoading ( ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle public API loading.
handleCache ( array $config, ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle cache parameters.
handleDefaultSettingsLoading ( ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle default settings.
handleHelpers ( array $config, ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle helpers.
handleImage ( array $config, ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader )
handleLocale ( array $config, ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle locale parameters.
handleRouting ( array $config, ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle routing parameters.
handleSessionLoading ( ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle session parameters.
handleSiteAccessesRelation ( ContainerBuilder $container ) Handles relation between SiteAccesses.
handleTemplating ( ContainerBuilder $container, Symfony\Component\DependencyInjection\Loader\FileLoader $loader ) Handle templating parameters.
registerImageMagickConfiguration ( array $config, ContainerBuilder $container )
registerPageConfiguration ( array $config, ContainerBuilder $container )
registerRepositoriesConfiguration ( array $config, ContainerBuilder $container )
registerSiteAccessConfiguration ( array $config, ContainerBuilder $container )

Method Details

__construct() public method

public __construct ( array $configParsers = [] )
$configParsers array

addConfigParser() public method

One can call this method from a bundle build() method. php public function build(ContainerBuilder $container) { $ezExtension = $container->getExtension('ezpublish'); $ezExtension->addConfigParser($myConfigParser); }
Since: 6.0
public addConfigParser ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ParserInterface $configParser )
$configParser eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ParserInterface

addDefaultSettings() public method

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'] ); }
Since: 6.0
public addDefaultSettings ( string $fileLocation, array $files )
$fileLocation string
$files array

addPolicyProvider() public method

One can call this method from a bundle build() method. php public function build(ContainerBuilder $container) { $ezExtension = $container->getExtension('ezpublish'); $ezExtension->addPolicyProvider($myPolicyProvider); }
Since: 6.0
public addPolicyProvider ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Security\PolicyProvider\PolicyProviderInterface $policyProvider )
$policyProvider eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Security\PolicyProvider\PolicyProviderInterface

getAlias() public method

public getAlias ( )

getConfiguration() public method

public getConfiguration ( array $config, ContainerBuilder $container ) : Configuration
$config array
$container Symfony\Component\DependencyInjection\ContainerBuilder
return Configuration

load() public method

Loads a specific configuration.
public load ( array $configs, ContainerBuilder $container )
$configs array An array of configuration values
$container Symfony\Component\DependencyInjection\ContainerBuilder A ContainerBuilder instance

prepend() public method

public prepend ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder