Interface

Symfony\Component\DependencyInjection\Extension\ExtensionInterface

interface ExtensionInterface

ExtensionInterface is the interface implemented by container extension classes.

Methods

load(array $config, ContainerBuilder $container)

Loads a specific configuration.

string getNamespace()

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

string getXsdValidationBasePath()

Returns the base path for the XSD files.

string getAlias()

Returns the recommended alias to use in XML.

Details

at line 35
public load(array $config, ContainerBuilder $container)

Loads a specific configuration.

Parameters

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

Exceptions

InvalidArgumentException When provided tag is not defined in this extension

at line 44
public string getNamespace()

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

Return Value

string The XML namespace

at line 53
public string getXsdValidationBasePath()

Returns the base path for the XSD files.

Return Value

string The XSD base path

at line 64
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