Category: symfony3.x

Sonata Admin – route prefix with a parameter

I would like to add a {slug} parameter before /admin prefix so I could have /{slug}/admin on all sonata admin routes. So far I set up app/config/routing_sonata.yml like this admin: resource: ‘@SonataAdminBundle/Resources/config/routing/sonata_admin.xml’ prefix: /{slug}/admin _sonata_admin: resource: . type: sonata_admin prefix:…