merchantUtils = $merchantUtils; $this->utils = $utils; } public static function getSubscribedEvents() { return array( 'easy_admin.post_initialize' => array('initialize'), 'easy_admin.post_update' => array('updateCommonProperty'), ); } public function initialize(GenericEvent $event) { $request = $event->getArgument('request'); if($request->query->get('hubredirection')){ $this->utils->addFlash('alert', "Vous ĂȘtes maintenant sur le hub de ".$this->merchantUtils->getMerchantCurrent()->getTitle()); } } }