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