Symfony2 API
Class

Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension

class SecurityExtension extends Extension

SecurityExtension.

Methods

string getXsdValidationBasePath()

Returns the base path for the XSD files.

string getNamespace()

Returns the namespace to be used for this extension (XML namespace).

string getAlias()

Returns the recommended alias to use in XML.

from Extension
ConfigurationInterface|null getConfiguration(array $config, ContainerBuilder $container)

Returns extension configuration

array getClassesToCompile()

Gets the classes to cache.

from Extension
addClassesToCompile(array $classes)

Adds classes to the class cache.

from Extension
__construct()

load(array $configs, ContainerBuilder $container)

Loads a specific configuration.

addSecurityListenerFactory(SecurityFactoryInterface $factory)

addUserProviderFactory(UserProviderFactoryInterface $factory)

Details

at line 645
public string getXsdValidationBasePath()

Returns the base path for the XSD files.

Return Value

string The XSD base path

at line 650
public string getNamespace()

Returns the namespace to be used for this extension (XML namespace).

Return Value

string The XML namespace

in Extension at line 69
public string getAlias()

Returns the recommended alias to use in XML.

This alias is also the mandatory prefix to use when using YAML.

Return Value

string The alias

at line 655
public ConfigurationInterface|null getConfiguration(array $config, ContainerBuilder $container)

Returns extension configuration

Parameters

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

Return Value

ConfigurationInterface|null The configuration or null

in Extension at line 30
public array getClassesToCompile()

Gets the classes to cache.

Return Value

array An array of classes

in Extension at line 40
public addClassesToCompile(array $classes)

Adds classes to the class cache.

Parameters

array $classes An array of classes

at line 43
public __construct()

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

Loads a specific configuration.

Parameters

array $configs
ContainerBuilder $container A ContainerBuilder instance

Exceptions

InvalidArgumentException When provided tag is not defined in this extension

at line 630
public addSecurityListenerFactory(SecurityFactoryInterface $factory)

Parameters

SecurityFactoryInterface $factory

at line 635
public addUserProviderFactory(UserProviderFactoryInterface $factory)

Parameters

UserProviderFactoryInterface $factory