Fix getting mapping files

I think there is a typo in findMappingFiles() method.
Did you do some benchmarks? I believe reflection is slower than just instantiating the bundle.





Van: dantleech
Verzonden: ‎zaterdag‎ ‎19‎ ‎juli‎ ‎2014 ‎21‎:‎20
Aan: symfony-cmf/RoutingAutoBundle
CC: Wouter J





In DependencyInjection/CmfRoutingAutoExtension.php:
> @@ -56,9 +58,11 @@ protected function findMappingFiles($bundles)
>      {
>          $resources = array();
>          foreach ($bundles as $bundle) {
> +            $obj = new $bundle;


I am fixing this in master to use Reflection // cc @WouterJ 

—
Reply to this email directly or view it on GitHub.