class default_resources_locator implements resources_locator_interface

Locates the yaml routing resources located in the default locations

Properties

protected string $phpbb_root_path

phpBB root path

protected string $environment

Name of the current environment

protected manager $extension_manager

Extension manager

Methods

__construct(string $phpbb_root_path, string $environment, manager $extension_manager = null)

Construct method

array
locate_resources()

Locates a list of resources used to load the routes

array
append_ext_resources(array $resources)

Append extension resources to an array of resouces

Details

at line 51
__construct(string $phpbb_root_path, string $environment, manager $extension_manager = null)

Construct method

Parameters

string $phpbb_root_path

phpBB root path

string $environment

Name of the current environment

manager $extension_manager

Extension manager

at line 61
array locate_resources()

Locates a list of resources used to load the routes

Each entry of the list can be either the resource or an array composed of 2 elements: the resource and its type.

Return Value

array

List of resources

at line 79
protected array append_ext_resources(array $resources)

Append extension resources to an array of resouces

Parameters

array $resources

List of resources

Return Value

array

List of resources

See also

resources_locator_interface::locate_resources