I have a routing.yml file where I define the routes of my bundle. My routing file is growing bigger.
Is there a way to split the routing.yml file in multiple files? Eg:
NOTE: I am using Symfony 2.2;
The routing.yml can split by multiple files. You can include separate routing files in your routing.yml file.
acme_demo_user:
resource: "@acmeDemoBundle/Resources/config/routing/user_routing.yml"
prefix: /user
acme_demo_vehicles:
resource: "@acmeDemoBundle/Resources/config/routing/vehicles_routing.yml"
prefix: /vehicles
.............
.............
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With