mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Added env var that can be used to define default short codes length on docker image
This commit is contained in:
@@ -11,6 +11,7 @@ use PUGX\Shortid\Factory as ShortIdFactory;
|
||||
use function sprintf;
|
||||
|
||||
const DEFAULT_SHORT_CODES_LENGTH = 5;
|
||||
const MIN_SHORT_CODES_LENGTH = 4;
|
||||
|
||||
function generateRandomShortCode(int $length): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user