2021-09-26 04:20:29 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Shlinkio\Shlink;
|
|
|
|
|
2023-01-07 04:27:15 -06:00
|
|
|
use Shlinkio\Shlink\Core\Util\RedirectStatus;
|
2021-09-26 04:20:29 -05:00
|
|
|
|
|
|
|
const DEFAULT_DELETE_SHORT_URL_THRESHOLD = 15;
|
|
|
|
const DEFAULT_SHORT_CODES_LENGTH = 5;
|
|
|
|
const MIN_SHORT_CODES_LENGTH = 4;
|
2024-02-12 13:29:40 -06:00
|
|
|
const DEFAULT_REDIRECT_STATUS_CODE = RedirectStatus::STATUS_302;
|
2021-09-26 04:20:29 -05:00
|
|
|
const DEFAULT_REDIRECT_CACHE_LIFETIME = 30;
|
|
|
|
const LOCAL_LOCK_FACTORY = 'Shlinkio\Shlink\LocalLockFactory';
|
2023-04-10 11:05:57 -05:00
|
|
|
const LOOSE_URI_MATCHER = '/(.+)\:(.+)/i'; // Matches anything starting with a schema.
|
2021-09-26 06:25:02 -05: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 10:10:10 -06:00
|
|
|
const DEFAULT_QR_CODE_ROUND_BLOCK_SIZE = true;
|
2024-02-12 13:29:40 -06:00
|
|
|
const DEFAULT_QR_CODE_ENABLED_FOR_DISABLED_SHORT_URLS = true;
|
2024-02-18 14:02:35 -06:00
|
|
|
const DEFAULT_QR_CODE_COLOR = '#000000'; // Black
|
|
|
|
const DEFAULT_QR_CODE_BG_COLOR = '#ffffff'; // White
|