mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-27 16:26:37 +03:00
19 lines
456 B
PHP
19 lines
456 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
|
|
|
return (static function (): array {
|
|
$webhooks = EnvVars::VISITS_WEBHOOKS()->loadFromEnv();
|
|
|
|
return [
|
|
|
|
'visits_webhooks' => [
|
|
'webhooks' => $webhooks === null ? [] : explode(',', $webhooks),
|
|
'notify_orphan_visits_to_webhooks' =>
|
|
(bool) EnvVars::NOTIFY_ORPHAN_VISITS_TO_WEBHOOKS()->loadFromEnv(false),
|
|
],
|
|
|
|
];
|
|
})();
|