| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function webhook(ServerRequestInterface $request, ResponseInterface $response, array $args): ResponseInterface |
||
| 28 | { |
||
| 29 | /** @var ChannelManager $channelManager */ |
||
| 30 | $channelManager = $this->kernel->resolve(ChannelManager::class); |
||
| 31 | |||
| 32 | $channel = $channelManager->create($args['name']); |
||
| 33 | |||
| 34 | $result = $this->kernel->process($channel, $request); |
||
| 35 | |||
| 36 | $response->getBody()->write($result); |
||
| 37 | |||
| 38 | return $response; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |