[Config] Handle open_basedir restrictions in FileLocator

Silence `file_exists()` call to avoid open_basedir restrictions warning. (can happen when using relative imports)
This commit is contained in:
Tristan Darricau 2016-09-11 15:39:04 +02:00 committed by Fabien Potencier
parent 946b96b70d
commit e8708195e2
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class FileLocator implements FileLocatorInterface
$filepaths = array();
foreach ($paths as $path) {
if (file_exists($file = $path.DIRECTORY_SEPARATOR.$name)) {
if (@file_exists($file = $path.DIRECTORY_SEPARATOR.$name)) {
if (true === $first) {
return $file;
}