From cd4ff0833571fb0f08e2755b2c9f7e3ef08cec79 Mon Sep 17 00:00:00 2001 From: Jordi Date: Wed, 5 Aug 2020 15:21:32 +0200 Subject: [PATCH] Simplify routes config by following Symfony standards --- src/Resources/config/routing/sonata_admin.xml | 31 +++++-------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/src/Resources/config/routing/sonata_admin.xml b/src/Resources/config/routing/sonata_admin.xml index 46db9b38b6..a44f0985fb 100644 --- a/src/Resources/config/routing/sonata_admin.xml +++ b/src/Resources/config/routing/sonata_admin.xml @@ -1,31 +1,16 @@ - - Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction + sonata_admin_dashboard true - - Sonata\AdminBundle\Action\DashboardAction - - - sonata.admin.action.retrieve_form_field_element - - - sonata.admin.action.append_form_field_element - - - sonata.admin.action.get_short_object_description - html + + + + html|json - - sonata.admin.action.set_object_field_value - - - Sonata\AdminBundle\Action\SearchAction - - - sonata.admin.action.retrieve_autocomplete_items - + + +