ExtensionInterface

ExtensionInterface

interface ExtensionInterface

ExtensionInterface is the interface implemented by container extension classes.

Methods

load(array $configs, 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

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

string getNamespace()

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

Return Value

string The XML namespace

string getXsdValidationBasePath()

Returns the base path for the XSD files.

Return Value

string The XSD base path

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
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部