Symfony 3 Bulk and Nested Routes
I am currently working on a Symfony project with a lot of namespaces and Bundles. Many of them use the same basic route:
# /app/config/routing.yml
something:
resource: "@SomethingBundle/Controller/"
prefix: /admin/something
type: annotation
Now at least 10 other packages use the prefix /admin
, so I was wondering if there is a way to group and embed them in them? I imagine something like this (pseudocode):
admin:
prefix: /admin
nested_resources:
- something:
resource: "@SomethingBundle/Controller/"
prefix: /something
type: annotation
...
+3
source to share
No one has answered this question yet
Check out similar questions: