phpBB API Documentation
Class

phpbb\extension\di\extension_base

class extension_base extends Extension

Container core extension

Methods

__construct(string $extension_name, string $ext_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 47
public __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 61
public 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 106
public getConfiguration(array $config, ContainerBuilder $container)

{@inheritdoc}

Parameters

array $config
ContainerBuilder $container

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