|
@@ -35,9 +35,9 @@ class PhpFileLoader extends FileLoader
|
|
|
$loader = $this;
|
|
|
|
|
|
$path = $this->locator->locate($file);
|
|
|
+ $this->setCurrentDir(dirname($path));
|
|
|
|
|
|
$collection = include $path;
|
|
|
- $this->setCurrentDir(dirname($path));
|
|
|
$collection->addResource(new FileResource($path));
|
|
|
|
|
|
return $collection;
|