Documentation

ExtensionInterface

ExtensionInterface is the interface implemented by container extension classes.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

getAlias()  : string
Returns the recommended alias to use in XML.
getNamespace()  : string
Returns the namespace to be used for this extension (XML namespace).
getXsdValidationBasePath()  : string|false
Returns the base path for the XSD files.
load()  : mixed
Loads a specific configuration.

Methods

getAlias()

Returns the recommended alias to use in XML.

public getAlias() : string

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

Return values
string

getNamespace()

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

public getNamespace() : string
Return values
string

getXsdValidationBasePath()

Returns the base path for the XSD files.

public getXsdValidationBasePath() : string|false
Return values
string|false

load()

Loads a specific configuration.

public load(array<string|int, mixed> $configs, ContainerBuilder $container) : mixed
Parameters
$configs : array<string|int, mixed>
$container : ContainerBuilder
Tags
throws
InvalidArgumentException

When provided tag is not defined in this extension

Return values
mixed

Search results