Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 2c20b51

Browse files
committed
Fixing typo and completing findMappingFiles method
I think the method was incomplete and contained a typo.
1 parent a9c4f8b commit 2c20b51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DependencyInjection/CmfRoutingAutoExtension.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ protected function findMappingFiles($bundles)
5757
$resources = array();
5858
foreach ($bundles as $bundle) {
5959
foreach (array('xml', 'yml') as $extension) {
60-
if (file_exists($bundle->getPath().'/Resources/config/auto_routing.'.$extension)) {
61-
$resources[] = $extension;
60+
$path = $bundle->getPath().'/Resources/config/auto_routing.'.$extension;
61+
if (file_exists($path)) {
62+
$resources[] = array('path' => $path, 'type' => $extension);
6263
}
6364
}
6465
}

0 commit comments

Comments
 (0)