mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-09 07:33:03 -06:00
21 lines
417 B
PHP
21 lines
417 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
use function Shlinkio\Shlink\Common\env;
|
|
|
|
return (static function (): array {
|
|
$threshold = env('DELETE_SHORT_URL_THRESHOLD');
|
|
|
|
return [
|
|
|
|
'delete_short_urls' => [
|
|
'check_visits_threshold' => $threshold !== null,
|
|
'visits_threshold' => (int) ($threshold ?? DEFAULT_DELETE_SHORT_URL_THRESHOLD),
|
|
],
|
|
|
|
];
|
|
})();
|