You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
In our project, we use Zend\Expressive as core and Zend\View as template engine. And we come across with an issue that FlashMessenger only works with Zend\Mvc\Controller\Plugin\FlashMessenger or Zend\Mvc\Plugin\FlashMessenger\FlashMessenger. None of them is available in Expressive and add dependencies on Zend\Mvc isn't a good idea.
There are different Flash implementations and will be great that Zend\View\Helper\FlashMessenger depend on some FlashInterface instead of Zend\Mvc\Plugin\FlashMessenger\FlashMessenger. This feature will allow integrating Zend\View\Helper\FlashMessenger with many Flash Messanger libraries.
I've written a module for this but for now FlashInterface is dirty and require improvement.
The text was updated successfully, but these errors were encountered:
popovserhii
changed the title
Zend\View\Helper\FlashMessenger isn't compatible with Expressive app
Zend\View\Helper\FlashMessenger isn't compatible with Expressive
Apr 6, 2018
Аfter composer require zendframework/zend-expressive-flash and modifying config/pipeline.php, authorization to my admin stops working. I was trying to understand but everything is very confusing. That why I've created a custom module.
But even if zend-expressive-flash will work I will not be able to use a flashMessanger helper which helps renders html markup.
In our project, we use
Zend\Expressive
as core andZend\View
as template engine. And we come across with an issue thatFlashMessenger
only works withZend\Mvc\Controller\Plugin\FlashMessenger
orZend\Mvc\Plugin\FlashMessenger\FlashMessenger
. None of them is available in Expressive and add dependencies onZend\Mvc
isn't a good idea.There are different Flash implementations and will be great that
Zend\View\Helper\FlashMessenger
depend on someFlashInterface
instead ofZend\Mvc\Plugin\FlashMessenger\FlashMessenger
. This feature will allow integratingZend\View\Helper\FlashMessenger
with many Flash Messanger libraries.I've written a module for this but for now
FlashInterface
is dirty and require improvement.The text was updated successfully, but these errors were encountered: