Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
25 | { |
||
26 | $response = $handler->handle($request); |
||
27 | $stream = $response->getBody(); |
||
28 | if ($stream instanceof DataStream) { |
||
29 | $stream->setConverter($this->converter, $this->params); |
||
30 | } |
||
31 | return $response; |
||
32 | } |
||
34 |