I think I’ve found a possible bug in symfony, but before reporting this to them, just wanted to make sure if this might be considered as a bug or I am wrong!
I generated a bundle, and I did choose php format for routing, a new bundle was generated with its own routing.php, and /app/config/routing.yml also was updated to let kernel know about the router of this new bundle.
application_user:
resource: "@ApplicationUserBundle/Resources/config/routing.php"
prefix: /
Until here, everything as expected then I used SensioGenerator to create CRUD class again I used php format and everything was generated, but:
I see a routing.yml is generated in my bundle folder with this:
application_user_admin:
resource: "@ApplicationUserBundle/Resources/config/routing/admin.php"
prefix: /admin
It created a new folder with a php router in it, and in that router.yml it is loading that new php router file for my CRUD! so my bundle now has two files: routing.yml and routing.php (latter was there before CRUD, on time of bundle generation. and my /app/config/config.yml is still loading my routing.php of the bundle only, so my bundle routing.yml and its admin.php are not loaded! I know I can merge both routing.yml and routing.php of my bundle manually, but I think symfony should do this? shouldn’t it? Isn’t it a bug?