class extension_base extends Extension

Container core extension

Properties

protected string $extension_name

Name of the extension (vendor/name)

protected string $ext_path

Path to the extension.

Methods

__construct(string $extension_name, string $ext_path)

Constructor

load(array $configs, ContainerBuilder $container)

Loads a specific configuration.

load_services(ContainerBuilder $container)

Loads the services.yml file.

getConfiguration(array $config, ContainerBuilder $container)

{@inheritdoc}

string
getAlias()

Returns the recommended alias to use in XML.

Details

at line 48
__construct(string $extension_name, string $ext_path)

Constructor

Parameters

string $extension_name

Name of the extension (vendor/name)

string $ext_path

Path to the extension

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

at line 72
protected load_services(ContainerBuilder $container)

Loads the services.yml file.

Parameters

ContainerBuilder $container

A ContainerBuilder instance

at line 106
getConfiguration(array $config, ContainerBuilder $container)

{@inheritdoc}

Parameters

array $config
ContainerBuilder $container

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