class container_factory

Properties

protected language $language
protected string $phpbb_root_path
protected string $php_ext
protected request $request
protected update_helper $update_helper
protected ContainerInterface $container

The full phpBB container

Methods

__construct(language $language, request $request, update_helper $update_helper, string $phpbb_root_path, string $php_ext)

Constructor

ContainerInterface|object
get(null|string $service_name = null)

Container getter

mixed
get_parameter(string $param_name)

Returns the specified parameter from the container

build_container()

Build dependency injection container

Details

at line 63
__construct(language $language, request $request, update_helper $update_helper, string $phpbb_root_path, string $php_ext)

Constructor

Parameters

language $language

Language service

request $request

Request interface

update_helper $update_helper

Update helper

string $phpbb_root_path

Path to phpBB's root

string $php_ext

Extension of PHP files

at line 86
ContainerInterface|object get(null|string $service_name = null)

Container getter

Parameters

null|string $service_name

Name of the service to return

Return Value

ContainerInterface|object

phpBB's dependency injection container or the service specified in $service_name

Exceptions

cannot_build_container_exception
InvalidArgumentException
ServiceCircularReferenceException
ServiceNotFoundException

at line 106
mixed get_parameter(string $param_name)

Returns the specified parameter from the container

Parameters

string $param_name

Return Value

mixed

Exceptions

cannot_build_container_exception

at line 122
protected build_container()

Build dependency injection container