class finder

The hook finder locates installed hooks.

Properties

protected driver_interface $cache
protected string $phpbb_root_path
protected string $php_ext

Methods

__construct(string $phpbb_root_path, string $php_ext, driver_interface $cache = null)

Creates a new finder instance.

array
find(bool $cache = true)

Finds all hook files.

Details

at line 43
__construct(string $phpbb_root_path, string $php_ext, driver_interface $cache = null)

Creates a new finder instance.

Parameters

string $phpbb_root_path

Path to the phpbb root directory

string $php_ext

php file extension

driver_interface $cache

A cache instance or null

at line 56
array find(bool $cache = true)

Finds all hook files.

Parameters

bool $cache

Whether the result should be cached

Return Value

array

An array of paths to found hook files