mini\Util\PathsRegistry::findFirst() Method

public

Signature

public function findFirst(string $filename): ?string

Parameters

Name Type Default Description
$filename string required Documentation missing

Returns

?string

Documentation

Find the first occurrence of a file across all paths

Searches in priority order: primary path first, then fallback paths from most recently added to earliest. Returns the full path to the first match found, or null if the file doesn't exist in any path.

Results are cached in-memory (per-request) and in APCu (across requests).

Source

src/Util/PathsRegistry.php:95-131