class core extends Extension

Container core extension

Constants

TWIG_OPTIONS_POSITION

Properties

protected string $config_path

Config path

Methods

__construct(string $config_path)

Constructor

load(array $configs, ContainerBuilder $container)

Loads a specific configuration.

getConfiguration(array $config, ContainerBuilder $container)

{@inheritdoc}

string
getAlias()

Returns the recommended alias to use in XML.

Details

at line 42
__construct(string $config_path)

Constructor

Parameters

string $config_path

Config path

at line 55
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 132
getConfiguration(array $config, ContainerBuilder $container)

{@inheritdoc}

Parameters

array $config
ContainerBuilder $container

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