Repository navigation
Expand file tree
/
Copy pathwebhook.php
More file actions
41 lines (38 loc) · 1.69 KB
/
Copy pathwebhook.php
File metadata and controls
41 lines (38 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
return [
/*
* configuration for webhook dispatcher
*/
'dispatch' => [
// required, guzzle options array https://docs.guzzlephp.org/en/stable/request-options.html
'default_options' => [
// required, you must always configure some timeout https://docs.guzzlephp.org/en/stable/request-options.html#timeout
'timeout' => null,
],
// http request headers send in every webhook call
'default_headers' => [],
// connection name where are asynchronous webhook calls dispatched, if null default laravel queue connection is used
'queue-connection' => null,
// if connection support named queue, specific name for webhooks can be defined here, if null default queue name is used
'queue-name' => null,
// channel name where failed webhook calls are logged, if null default laravel channel is used
'log-channel' => null,
// required define how many times will webhook call retry if failed
'max-tries' => 24,
// required define delay between retries in seconds
'tries-delay' => 3600,
],
/*
* configuration for webhook repository
*/
// config keys in the 'repository' array can be different and depends on the used repository, registered in service provider
'repository' => [
/*
* configuration for \SimpleAsFuck\ApiToolkit\Service\Webhook\LaravelMysqlRepository
* registered by default in the "simple-as-fuck/php-api-toolkit" package
*/
// string with connection name where are webhooks stored if null default laravel connection used
'database-connection' => null,
],
];