phpBB API Documentation
Class

phpbb\controller\resolver

class resolver implements ControllerResolverInterface

Controller manager class

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().

Details

at line 56
public __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
public 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
public 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