FileLocator

FileLocator

class FileLocator implements FileLocatorInterface

FileLocator uses an array of pre-defined paths to find files.

Methods

__construct(string|array $paths = array())

Constructor.

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

Returns a full path for a given file name.

Details

__construct(string|array $paths = array())

Constructor.

Parameters

string|array