I have a Symfony 2.3.1 application with two bundles. Each bundle contains Resources/config/routing.yml configuration file:
mobile:
resource: "@MyMobileBundle/Controller"
type: annotation
and
admin:
resource: "@MyAdminBundle/Controller"
type: annotation
This is app/config/routing.yml:
_mobile:
resource: "@MyMobileBundle/Resources/config/routing.yml"
prefix: /mobile
_admin:
resource: "@MyAdminBundle/Resources/config/routing.yml"
prefix: /admin
And app/config/routing_dev.yml contains:
_main:
resource: routing.yml
The problem is that each time only /admin/... or /mobile/... paths are available. If only one routing resource included in app/config/routing.yml everything works fine. Has anybody had such problem? Is it correct to set prefixes for different bundles this way?