2021-10-09 03:53:21 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-01-20 13:16:37 -06:00
|
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
2021-10-09 03:53:21 -05:00
|
|
|
|
2022-01-31 05:30:29 -06:00
|
|
|
// Deprecated. Webhooks are no longer supported. To be removed in Shlink 4.0.0
|
2021-10-09 03:53:21 -05:00
|
|
|
return (static function (): array {
|
2022-04-23 05:44:17 -05:00
|
|
|
$webhooks = EnvVars::VISITS_WEBHOOKS->loadFromEnv();
|
2021-10-09 03:53:21 -05:00
|
|
|
|
|
|
|
return [
|
|
|
|
|
2022-01-16 08:34:07 -06:00
|
|
|
'visits_webhooks' => [
|
|
|
|
'webhooks' => $webhooks === null ? [] : explode(',', $webhooks),
|
2022-01-20 13:16:37 -06:00
|
|
|
'notify_orphan_visits_to_webhooks' =>
|
2022-04-23 05:44:17 -05:00
|
|
|
(bool) EnvVars::NOTIFY_ORPHAN_VISITS_TO_WEBHOOKS->loadFromEnv(false),
|
2021-10-09 03:53:21 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|
|
|
|
})();
|