2021-09-26 12:20:29 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
|
2023-01-07 13:27:15 +03:00
|
|
|
use Shlinkio\Shlink\Core\Util\RedirectStatus;
|
2021-09-26 12:20:29 +03:00
|
|
|
|
|
|
|
const DEFAULT_DELETE_SHORT_URL_THRESHOLD = 15;
|
|
|
|
const DEFAULT_SHORT_CODES_LENGTH = 5;
|
|
|
|
const MIN_SHORT_CODES_LENGTH = 4;
|
2023-01-07 15:51:35 +03:00
|
|
|
const DEFAULT_REDIRECT_STATUS_CODE = RedirectStatus::STATUS_302; // Deprecated. Default to 307 for Shlink v4
|
2021-09-26 12:20:29 +03:00
|
|
|
const DEFAULT_REDIRECT_CACHE_LIFETIME = 30;
|
|
|
|
const LOCAL_LOCK_FACTORY = 'Shlinkio\Shlink\LocalLockFactory';
|
2022-02-01 21:12:53 +03:00
|
|
|
const TITLE_TAG_VALUE = '/<title[^>]*>(.*?)<\/title>/i'; // Matches the value inside a html title tag
|
2021-09-26 14:25:02 +03:00
|
|
|
const DEFAULT_QR_CODE_SIZE = 300;
|
|
|
|
const DEFAULT_QR_CODE_MARGIN = 0;
|
|
|
|
const DEFAULT_QR_CODE_FORMAT = 'png';
|
|
|
|
const DEFAULT_QR_CODE_ERROR_CORRECTION = 'l';
|
2021-12-06 19:10:10 +03:00
|
|
|
const DEFAULT_QR_CODE_ROUND_BLOCK_SIZE = true;
|
2021-10-23 17:32:06 +03:00
|
|
|
const MIN_TASK_WORKERS = 4;
|