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
Currently i see no clean way to provide some context metadata to response strategy.
As example it would be handy to use the request or the query that was dispatched to the query bus, to get the provided metadata.
That's a good point. I guess we should look to issue #11 too. With this you could transform a JSON response to a HTML or XML response. But maybe there is a better solution. At the moment I'm busy, but I can think more about that in the beginning of october.
I would like to avoid an additional parameter to the fromPromise method. /cc @bweston92
From @oqq on September 19, 2016 9:5
Hi!
Currently i see no clean way to provide some context metadata to response strategy.
As example it would be handy to use the request or the query that was dispatched to the query bus, to get the provided metadata.
Without $context i have create a abstract factory to inject the template name in the strategy, which would ends in a config nighmare.
Or am i missing a already existing solution for that issue?
Some hints would to be welcome.
Thanks!
Copied from original issue: prooph/psr7-middleware#14
The text was updated successfully, but these errors were encountered: