FileLocatorInterface.php 891 B

1234567891011121314151617181920212223242526272829303132
  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. /**
  12. * @author Fabien Potencier <fabien@symfony.com>
  13. */
  14. interface FileLocatorInterface
  15. {
  16. /**
  17. * Returns a full path for a given file name.
  18. *
  19. * @param string $name The file name to locate
  20. * @param string|null $currentPath The current path
  21. * @param bool $first Whether to return the first occurrence or an array of filenames
  22. *
  23. * @return string|array The full path to the file or an array of file paths
  24. *
  25. * @throws \InvalidArgumentException When file is not found
  26. */
  27. public function locate($name, $currentPath = null, $first = true);
  28. }