2021-09-26 14:25:02 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-01-20 22:16:37 +03:00
|
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
2021-09-26 14:25:02 +03:00
|
|
|
|
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_ERROR_CORRECTION;
|
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_FORMAT;
|
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_MARGIN;
|
2021-12-06 19:10:10 +03:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_ROUND_BLOCK_SIZE;
|
2021-09-26 14:25:02 +03:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_SIZE;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'qr_codes' => [
|
2022-01-20 22:16:37 +03:00
|
|
|
'size' => (int) EnvVars::DEFAULT_QR_CODE_SIZE()->loadFromEnv(DEFAULT_QR_CODE_SIZE),
|
|
|
|
'margin' => (int) EnvVars::DEFAULT_QR_CODE_MARGIN()->loadFromEnv(DEFAULT_QR_CODE_MARGIN),
|
|
|
|
'format' => EnvVars::DEFAULT_QR_CODE_FORMAT()->loadFromEnv(DEFAULT_QR_CODE_FORMAT),
|
|
|
|
'error_correction' => EnvVars::DEFAULT_QR_CODE_ERROR_CORRECTION()->loadFromEnv(
|
|
|
|
DEFAULT_QR_CODE_ERROR_CORRECTION,
|
|
|
|
),
|
|
|
|
'round_block_size' => (bool) EnvVars::DEFAULT_QR_CODE_ROUND_BLOCK_SIZE()->loadFromEnv(
|
|
|
|
DEFAULT_QR_CODE_ROUND_BLOCK_SIZE,
|
|
|
|
),
|
2021-09-26 14:25:02 +03:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|