symfony - Symfony2: Splitting routing.yml in multiple files -


i have routing.yml file define routes of bundle. routing file growing bigger.

is there way split routing.yml file in multiple files? eg:

  • user_routing.yml
  • vehicles_routing.yml
  • cost_centers_routing.yml

note: using symfony 2.2;

the routing.yml can split multiple files. can include separate routing files in 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 ............. ............. 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -