zendframework / zend-expressive

PSR-15 middleware in minutes!
BSD 3-Clause "New" or "Revised" License
711 stars 197 forks source link

FlahsMessenger for Zend\Expressive #248

Closed RalfEggert closed 8 years ago

RalfEggert commented 8 years ago

Like described here: https://github.com/zendframework/zend-mvc/issues/52

I would like to use someting like the FlashMessenger within my Zend\Expressive application without the need of installing the whole Zend\Mvc package.

geerteltink commented 8 years ago

Something like this?

https://github.com/slimphp/Slim-Flash

RalfEggert commented 8 years ago

Then I would rather prefer the original FlashMessenger because it supports different message namespaces.

Currently to pass a message from one middleware to the next middleware in the pipe I used a request attribute. But that won't work for a real redirect.

weierophinney commented 8 years ago

This would indeed be a useful feature. I wonder if it could be built-in to Ocramius/PSR7Session, as I'm likely to direct folks to that library for session management with expressive ... (pinging @Ocramius )

dannym87 commented 8 years ago

@weierophinney I've built a little middleware library that uses Aura Session. Any feedback is much appreciated https://github.com/dannym87/expressive-session-middleware

basz commented 8 years ago

@dannym87 have a look at https://github.com/oscarotero/psr7-middlewares/blob/master/src/Middleware/AuraSession.php

samsonasik commented 8 years ago

@RalfEggert @dannym87 I give a try create cookbook pr #306 for it