phpBB API Documentation
Class

phpbb\di\container_builder

class container_builder

Methods

__construct(config_php_file $config_php_file, string $phpbb_root_path, string $php_ext)

Constructor

phpbb_cache_container|ContainerBuilder get_container()

Build and return a new Container respecting the current configuration

set_use_extensions(bool $use_extensions)

Set if the extensions should be used.

set_use_custom_pass(bool $use_custom_pass)

Set if the phpBB compile pass have to be used.

set_use_kernel_pass(bool $use_kernel_pass)

Set if the kernel compile pass have to be used.

set_inject_config(bool $inject_config)

Set if the php config file should be injecting into the container.

set_dump_container($dump_container)

Set if a dump container should be used.

set_compile_container($compile_container)

Set if the container should be compiled automatically (default to true).

set_config_path(string $config_path)

Set a custom path to find the configuration of the container

set_custom_parameters(array $custom_parameters)

Set custom parameters to inject into the container.

Details

at line 121
public __construct(config_php_file $config_php_file, string $phpbb_root_path, string $php_ext)

Constructor

Parameters

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

at line 133
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 202
public set_use_extensions(bool $use_extensions)

Set if the extensions should be used.

Parameters

bool $use_extensions

at line 212
public set_use_custom_pass(bool $use_custom_pass)

Set if the phpBB compile pass have to be used.

Parameters

bool $use_custom_pass

at line 222
public set_use_kernel_pass(bool $use_kernel_pass)

Set if the kernel compile pass have to be used.

Parameters

bool $use_kernel_pass

at line 232
public set_inject_config(bool $inject_config)

Set if the php config file should be injecting into the container.

Parameters

bool $inject_config

at line 244
public set_dump_container($dump_container)

Set if a dump container should be used.

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

Parameters

$dump_container

at line 254
public set_compile_container($compile_container)

Set if the container should be compiled automatically (default to true).

Parameters

$compile_container

at line 264
public set_config_path(string $config_path)

Set a custom path to find the configuration of the container

Parameters

string $config_path

at line 274
public set_custom_parameters(array $custom_parameters)

Set custom parameters to inject into the container.

Parameters

array $custom_parameters