Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class WebhookController extends \Illuminate\Routing\Controller |
||
14 | { |
||
15 | /** |
||
16 | * The webhook dispatcher. |
||
17 | * |
||
18 | * @var Dispatcher |
||
19 | */ |
||
20 | protected $dispatcher; |
||
21 | |||
22 | /** |
||
23 | * WebhookController constructor. |
||
24 | * |
||
25 | * @param Dispatcher $dispatcher |
||
26 | */ |
||
27 | public function __construct(Dispatcher $dispatcher) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Handle the incoming webhook. |
||
34 | * |
||
35 | * @param string $key |
||
36 | * @param Request $request |
||
37 | * |
||
38 | * @return array|null |
||
39 | * |
||
40 | * @throws \Slides\Connector\Auth\Exceptions\WebhookValidationException |
||
41 | */ |
||
42 | public function __invoke(string $key, Request $request) |
||
45 | } |
||
46 | } |