class resolver implements ControllerResolverInterface

Controller manager class

Properties

protected ContainerInterface $container

ContainerInterface object

protected template|null $template

phpbb\template\template object

protected type_cast_helper $type_cast_helper

Request type cast helper object

protected string $phpbb_root_path

phpBB root path

Methods

__construct(ContainerInterface $container, string $phpbb_root_path, template $template = null)

Construct method

bool|callable
getController(Request $request)

Load a controller callable

array
getArguments(Request $request, mixed $controller)

Dependencies should be specified in the service definition and can be then accessed in __construct(). Arguments are sent through the URL path and should match the parameters of the method you are using as your controller.

Details

at line 56
__construct(ContainerInterface $container, string $phpbb_root_path, template $template = null)

Construct method

Parameters

ContainerInterface $container

ContainerInterface object

string $phpbb_root_path

Relative path to phpBB root

template $template

at line 71
bool|callable getController(Request $request)

Load a controller callable

Parameters

Request $request

Symfony Request object

Return Value

bool|callable

Callable or false

Exceptions

exception

at line 127
array getArguments(Request $request, mixed $controller)

Dependencies should be specified in the service definition and can be then accessed in __construct(). Arguments are sent through the URL path and should match the parameters of the method you are using as your controller.

Parameters

Request $request

Symfony Request object

mixed $controller

A callable (controller class, method)

Return Value

array

An array of arguments to pass to the controller

Exceptions

exception