Added env var that can be used to define default short codes length on docker image

This commit is contained in:
Alejandro Celaya
2020-02-18 19:34:01 +01:00
parent 343ee04acb
commit 51e130c7a0
6 changed files with 20 additions and 1 deletions

View File

@@ -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
{