Commit 54f06fb4 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

MessengerFactory : correction de l'obtention du plugin manager.

parent ae2b21e4
......@@ -4,6 +4,7 @@ namespace UnicaenApp\View\Helper;
use Interop\Container\ContainerInterface;
use Zend\EventManager\EventManagerInterface;
use Zend\Mvc\Controller\PluginManager;
use Zend\Mvc\Plugin\FlashMessenger\FlashMessenger as FlashMessengerPlugin;
/**
......@@ -16,7 +17,7 @@ class MessengerFactory
$messenger = new Messenger();
/** @var FlashMessengerPlugin $flashMessengerPlugin */
$flashMessengerPlugin = $container->get('PluginManager')->get('flashMessenger');
$flashMessengerPlugin = $container->get(PluginManager::class)->get('flashMessenger');
$messenger->setPluginFlashMessenger($flashMessengerPlugin);
// /* @var $application Application */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment