vendor/symfony/config/FileLocatorInterface.php line 33

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Config;
  11. use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException;
  12. /**
  13.  * @author Fabien Potencier <fabien@symfony.com>
  14.  */
  15. interface FileLocatorInterface
  16. {
  17.     /**
  18.      * Returns a full path for a given file name.
  19.      *
  20.      * @param string      $name        The file name to locate
  21.      * @param string|null $currentPath The current path
  22.      * @param bool        $first       Whether to return the first occurrence or an array of filenames
  23.      *
  24.      * @return string|array The full path to the file or an array of file paths
  25.      *
  26.      * @throws \InvalidArgumentException        If $name is empty
  27.      * @throws FileLocatorFileNotFoundException If a file is not found
  28.      */
  29.     public function locate(string $namestring $currentPath nullbool $first true);
  30. }