How to set flash message in sonata admin Admin Controller
问题 im looking for a way to set flash message in admin controller of sonata admin bundle, they allow to set flash messages in CRUDController as $this->get('session')->setFlash('sonata_flash_error', 'flash_batch_merge_error'); but not in the Admin Controller, this is my admin contrller use Sonata\AdminBundle\Admin\Admin; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Route\RouteCollection;