Symfony\Component\Config\FileLocator::locate
Returns a full path for a given file name.
Signature
public function locate(mixed
$name,
[string
$currentPath = null,
[Boolean
$first = true]] )
Parameters
$name
—
mixed
- The file name to locate
$currentPath
—
string
- The current path
$first
—
object
- Whether to return the first occurrence or an array of filenames
Returns
- string|array
- The full path to the file|An array of file paths
Errors/Exceptions
-
InvalidArgumentException
- When file is not found
Defined by Interface
FileLocatorInterface