phpBB API Documentation
Class

phpbb\hook\finder

class finder

The hook finder locates installed hooks.

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
public __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
public 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