Open basselin opened 2 years ago
Hey @basselin, could you rephrase a bit? What is broken?
Solution in FlashMessengerFactory ?
$helper = new FlashMessenger(); $helper->setPluginFlashMessenger($flashMessenger); return helper;
This is the correct solution.
Hi @Ocramius,
The helper flashMessenger
don't use the plugin service 'flashMessenger'
if you don't have any configuration of "flashmessenger" in "view_helper_config" : ['view_helper_config']['flashmessenger']
Therefore, the messages no longer appear.
BC Break Report
Summary
Laminas\Mvc\Plugin\FlashMessenger\View\Helper\FlashMessenger
don't useLaminas\Mvc\Plugin\FlashMessenger\FlashMessenger
without config['view_helper_config']['flashmessenger']
.Previous behavior
https://github.com/laminas/laminas-mvc-plugin-flashmessenger/blob/420a99df81432140d78799a2e7cb34931fcdd619/src/View/Helper/FlashMessengerFactory.php#L32
Current behavior
https://github.com/laminas/laminas-mvc-plugin-flashmessenger/blob/86bb1c654e5fafaf34d4deaa7dc9af721fbcb42d/src/View/Helper/FlashMessengerFactory.php#L47
How to reproduce
Config without
['view_helper_config']['flashmessenger']
Solution in FlashMessengerFactory ?
Or in global Config :