symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #256 by vbardales (2012-10-22 15:28:03+00:00)
Title: Update Routing/RoutingLoader.php to avoid conflict with composer intallation tree

I've updated this bundle to newest version and I have the error :

```
Cannot import resource "[..]/OAuthServerBundle/Controller/Client/" from "[..]/config/routing.yml".
```

Of course, my resource is
```
/var/local/webroot/project/vendor/author-name/oauth-server-bundle/VendorName/OAuthServerBundle/Controller/Client/
```

and the RoutingLoader::getNamespaceFromResource preg_match expression is
```
'#.+/(src|bundles)/(.+)/(.+Bundle)/Controller?/(.*?)/?$#'
```
(related to #79)

and I have no src or bundles repository, but a vendor one ...