1 | <?php |
||
21 | class Psr15ToSymfonyBridge implements MiddlewareInterface, RequestHandlerInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var HttpKernelInterface |
||
25 | */ |
||
26 | private $symfonyMiddleware; |
||
27 | /** |
||
28 | * @var HttpMessageFactoryInterface |
||
29 | */ |
||
30 | private $httpMessageFactory; |
||
31 | /** |
||
32 | * @var HttpFoundationFactoryInterface |
||
33 | */ |
||
34 | private $httpFoundationFactory; |
||
35 | |||
36 | /** |
||
37 | * @param HttpKernelInterface $symfonyMiddleware The next Symfony middleware to be called (after the psr15 middleware. |
||
38 | * @param HttpFoundationFactoryInterface $httpFoundationFactory The class in charge of translating PSR-7 request/response objects to Symfony objects. Defaults to Symfony default implementation |
||
39 | * @param HttpMessageFactoryInterface $httpMessageFactory The class in charge of translating Symfony request/response objects to PSR-7 objects. Defaults to Symfony default implementation (that uses Diactoros) |
||
40 | */ |
||
41 | public function __construct(HttpKernelInterface $symfonyMiddleware, HttpFoundationFactoryInterface $httpFoundationFactory = null, HttpMessageFactoryInterface $httpMessageFactory = null) |
||
47 | |||
48 | /** |
||
49 | * Process an incoming server request and return a response, optionally delegating |
||
50 | * to the next middleware component to create the response. |
||
51 | * |
||
52 | * @param ServerRequestInterface $request |
||
53 | * @param RequestHandlerInterface|null $delegate |
||
54 | * |
||
55 | * @return ResponseInterface |
||
56 | */ |
||
57 | public function process(ServerRequestInterface $request, RequestHandlerInterface $delegate): ResponseInterface |
||
61 | |||
62 | /** |
||
63 | * Handle the request and return a response. |
||
64 | */ |
||
65 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
73 | } |
||
74 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.