2018-09-15 12:01:23 +03:00
|
|
|
<?php
|
2019-10-05 18:26:10 +03:00
|
|
|
|
2018-09-15 12:01:23 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
|
2021-08-07 12:05:20 +03:00
|
|
|
use function Shlinkio\Shlink\Common\env;
|
|
|
|
|
2021-09-26 12:20:29 +03:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_DELETE_SHORT_URL_THRESHOLD;
|
2021-08-07 12:05:20 +03:00
|
|
|
|
2018-09-15 12:01:23 +03:00
|
|
|
return [
|
|
|
|
|
|
|
|
'delete_short_urls' => [
|
|
|
|
'check_visits_threshold' => true,
|
2021-08-07 12:05:20 +03:00
|
|
|
'visits_threshold' => (int) env('DELETE_SHORT_URL_THRESHOLD', DEFAULT_DELETE_SHORT_URL_THRESHOLD),
|
2018-09-15 12:01:23 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|