|
@@ -63,7 +63,7 @@ class YamlFileLoader extends FileLoader
|
|
|
if (isset($config['resource'])) {
|
|
|
$type = isset($config['type']) ? $config['type'] : null;
|
|
|
$prefix = isset($config['prefix']) ? $config['prefix'] : null;
|
|
|
- $this->currentDir = dirname($path);
|
|
|
+ $this->setCurrentDir(dirname($path));
|
|
|
$collection->addCollection($this->import($config['resource'], $type), $prefix);
|
|
|
} elseif (isset($config['pattern'])) {
|
|
|
$this->parseRoute($collection, $name, $config, $path);
|