Archived
What design pattern would allow me to use Symfony \ Component \ HttpFoundation \ Request and Symfony \ Component \ HttpFoundation \ Response on an object that respects the following interface:
<?php
interface Middleware
{
public function __invoke(
Psr\Http\Message\ServerRequestInterface $request,
Psr\Http\Message\ResponseInterface $response,
callable $next= null
): Psr\Http\Message\ResponseInterface;
}
Author: Julien BreuxStatus: ArchivedQuestion passed 1063 times
-1
Community EvaluationsNo one has reviewed this question yet, be the first!