namespace Symfony\Component\Config;
+use Symfony\Component\Config\Exception\FileLocatorFileNotFoundException;
+
/**
* FileLocator uses an array of pre-defined paths to find files.
*
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;
}
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;