X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FFileLocator.php;h=6b686390bc296ac2966c243bdc16234f63e7092c;hb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;hp=4816724c8190eb9028b4b9daf525b96d752803a2;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/config/FileLocator.php b/vendor/symfony/config/FileLocator.php index 4816724c8..6b686390b 100644 --- a/vendor/symfony/config/FileLocator.php +++ b/vendor/symfony/config/FileLocator.php @@ -11,6 +11,8 @@ namespace Symfony\Component\Config; +use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException; + /** * FileLocator uses an array of pre-defined paths to find files. * @@ -41,7 +43,7 @@ class FileLocator implements FileLocatorInterface if ($this->isAbsolutePath($name)) { if (!file_exists($name)) { - throw new \InvalidArgumentException(sprintf('The file "%s" does not exist.', $name)); + throw new FileLocatorFileNotFoundException(sprintf('The file "%s" does not exist.', $name)); } return $name; @@ -66,7 +68,7 @@ class FileLocator implements FileLocatorInterface } if (!$filepaths) { - throw new \InvalidArgumentException(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths))); + throw new FileLocatorFileNotFoundException(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths))); } return $filepaths;