[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:
parent
946b96b70d
commit
e8708195e2
@ -57,7 +57,7 @@ class FileLocator implements FileLocatorInterface
|
|||||||
$filepaths = array();
|
$filepaths = array();
|
||||||
|
|
||||||
foreach ($paths as $path) {
|
foreach ($paths as $path) {
|
||||||
if (file_exists($file = $path.DIRECTORY_SEPARATOR.$name)) {
|
if (@file_exists($file = $path.DIRECTORY_SEPARATOR.$name)) {
|
||||||
if (true === $first) {
|
if (true === $first) {
|
||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user