phpBB API Documentation
Class

phpbb\install\helper\container_factory

class container_factory

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

Details

at line 63
public __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
public 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 When container cannot be built
InvalidArgumentException If the service is not defined
ServiceCircularReferenceException When a circular reference is detected
ServiceNotFoundException When the service is not defined

at line 106
public 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 When container cannot be built