projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website]
/
vendor
/
symfony
/
config
/
FileLocator.php
diff --git
a/vendor/symfony/config/FileLocator.php
b/vendor/symfony/config/FileLocator.php
index 4816724c8190eb9028b4b9daf525b96d752803a2..6b686390bc296ac2966c243bdc16234f63e7092c 100644
(file)
--- a/
vendor/symfony/config/FileLocator.php
+++ b/
vendor/symfony/config/FileLocator.php
@@
-11,6
+11,8
@@
namespace Symfony\Component\Config;
namespace Symfony\Component\Config;
+use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException;
+
/**
* FileLocator uses an array of pre-defined paths to find files.
*
/**
* 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)) {
if ($this->isAbsolutePath($name)) {
if (!file_exists($name)) {
- throw new
\InvalidArgument
Exception(sprintf('The file "%s" does not exist.', $name));
+ throw new
FileLocatorFileNotFound
Exception(sprintf('The file "%s" does not exist.', $name));
}
return $name;
}
return $name;
@@
-66,7
+68,7
@@
class FileLocator implements FileLocatorInterface
}
if (!$filepaths) {
}
if (!$filepaths) {
- throw new
\InvalidArgument
Exception(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths)));
+ throw new
FileLocatorFileNotFound
Exception(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths)));
}
return $filepaths;
}
return $filepaths;