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