We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From @basz on March 14, 2017 20:34
suggested by @oqq
not a bad idea... I now have one strategy that actually handles two kind of responses...
$responseStrategy = $this->responseStrategyFactory->createStrategyFromRequest($request); return $responseStrategy->fromPromise( $this->queryBus->dispatch($query) );
router config
[ 'name' => 'query::status-pong', 'path' => '/status/pong', 'middleware' => [ QueryMiddleware::class, ], 'allowed_methods' => ['POST'], 'options' => [ 'values' => [ QueryMiddleware::NAME_ATTRIBUTE => Status\QueryName::pong, QueryMiddleware::PROMISE_TO_RESPONSE_STRATEGY => A/JsonResponse::class, ], ], ],
Copied from original issue: prooph/psr7-middleware#19
The text was updated successfully, but these errors were encountered:
From @prolic on December 23, 2017 13:47
@basz Please move this issue to https://github.com/prooph/http-middleware/
Sorry, something went wrong.
No branches or pull requests
From @basz on March 14, 2017 20:34
suggested by @oqq
not a bad idea... I now have one strategy that actually handles two kind of responses...
router config
Copied from original issue: prooph/psr7-middleware#19
The text was updated successfully, but these errors were encountered: