mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-30 19:36:40 +03:00
20 lines
478 B
PHP
20 lines
478 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use function Shlinkio\Shlink\Common\env;
|
||
|
|
||
|
return (static function (): array {
|
||
|
$webhooks = env('VISITS_WEBHOOKS');
|
||
|
|
||
|
return [
|
||
|
|
||
|
'url_shortener' => [
|
||
|
// TODO Move these options to their own config namespace
|
||
|
'visits_webhooks' => $webhooks === null ? [] : explode(',', $webhooks),
|
||
|
'notify_orphan_visits_to_webhooks' => (bool) env('NOTIFY_ORPHAN_VISITS_TO_WEBHOOKS', false),
|
||
|
],
|
||
|
|
||
|
];
|
||
|
})();
|