phpBB API Documentation
Class

phpbb\di\extension\config

class config extends Extension

Container config extension

Methods

__construct(config_php_file $config_php)

load(array $config, ContainerBuilder $container)

Loads a specific configuration.

string getAlias()

Returns the recommended alias to use in XML.

Details

at line 27
public __construct(config_php_file $config_php)

Parameters

config_php_file $config_php

at line 40
public load(array $config, ContainerBuilder $container)

Loads a specific configuration.

Parameters

array $config An array of configuration values
ContainerBuilder $container A ContainerBuilder instance

Exceptions

InvalidArgumentException When provided tag is not defined in this extension

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