shlink/config/autoload/webhooks.global.php

21 lines
531 B
PHP
Raw Normal View History

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