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