merchantUtils = $merchantUtils; $this->utils = $utils; } public static function getSubscribedEvents() { return array( 'easy_admin.post_initialize' => array('postInitialize'), ); } public function postInitialize(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()); } } }