phpBB API Documentation
Class

phpbb\di\container_builder

class container_builder

Methods

__construct(string $phpbb_root_path, string $php_ext)

Constructor

phpbb_cache_container|ContainerBuilder get_container()

Build and return a new Container respecting the current configuration

$this with_environment(string $environment)

Enable the extensions.

$this with_extensions()

Enable the extensions.

$this without_extensions()

Disable the extensions.

$this with_cache()

Enable the caching of the container.

$this without_cache()

Disable the caching of the container.

$this with_cache_dir(string $cache_dir)

Set the cache directory.

$this with_compiled_container()

Enable the compilation of the container.

$this without_compiled_container()

Disable the compilation of the container.

$this with_config_path(string $config_path)

Set a custom path to find the configuration of the container.

$this with_custom_parameters(array $custom_parameters)

Set custom parameters to inject into the container.

$this with_config(config_php_file $config_php_file)

Set custom parameters to inject into the container.

Details

at line 125
public __construct(string $phpbb_root_path, string $php_ext)

Constructor

Parameters

string $phpbb_root_path Path to the phpbb includes directory.
string $php_ext php file extension

at line 136
public phpbb_cache_container|ContainerBuilder get_container()

Build and return a new Container respecting the current configuration

Return Value

phpbb_cache_container|ContainerBuilder

at line 249
public $this with_environment(string $environment)

Enable the extensions.

Parameters

string $environment The environment to use

Return Value

$this

at line 261
public $this with_extensions()

Enable the extensions.

Return Value

$this

at line 273
public $this without_extensions()

Disable the extensions.

Return Value

$this

at line 287
public $this with_cache()

Enable the caching of the container.

If DEBUG_CONTAINER is set this option is ignored and a new container is build.

Return Value

$this

at line 299
public $this without_cache()

Disable the caching of the container.

Return Value

$this

at line 312
public $this with_cache_dir(string $cache_dir)

Set the cache directory.

Parameters

string $cache_dir The cache directory.

Return Value

$this

at line 324
public $this with_compiled_container()

Enable the compilation of the container.

Return Value

$this

at line 336
public $this without_compiled_container()

Disable the compilation of the container.

Return Value

$this

at line 349
public $this with_config_path(string $config_path)

Set a custom path to find the configuration of the container.

Parameters

string $config_path

Return Value

$this

at line 362
public $this with_custom_parameters(array $custom_parameters)

Set custom parameters to inject into the container.

Parameters

array $custom_parameters

Return Value

$this

at line 375
public $this with_config(config_php_file $config_php_file)

Set custom parameters to inject into the container.

Parameters

config_php_file $config_php_file

Return Value

$this