FileLocatorInterface

FileLocatorInterface

interface FileLocatorInterface

Methods

string|array locate(string $name, string|null $currentPath = null, bool $first = true)

Returns a full path for a given file name.

Details

string|array locate(string $name, string|null $currentPath = null, bool $first = true)

Returns a full path for a given file name.

Parameters

string $name The file name to locate
string|null $currentPath The current path
bool $first Whether to return the first occurrence or an array of filenames

Return Value

登录查看完整内容