interface FileLocatorInterface
| string|array | locate(string $name, string|null $currentPath = null, bool $first = true) Returns a full path for a given file name. |
Returns a full path for a given file name.
| 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 |
| string|array | The full path to the file or an array of file paths |
| InvalidArgumentException | If $name is empty |
| FileLocatorFileNotFoundException | If a file is not found |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/FileLocatorInterface.html