Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface |
||
24 | { |
||
25 | $channel = $this->channelManager->create($args['name']); |
||
26 | |||
27 | $result = $this->requestHandler->handle($channel, $request); |
||
28 | |||
29 | if ($result !== null) { |
||
30 | $response->getBody()->write($result); |
||
31 | } |
||
32 | |||
33 | return $response->withStatus(200); |
||
34 | } |
||
35 | } |
||
36 |