2021-09-26 06:25:02 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2022-01-20 13:16:37 -06:00
|
|
|
use Shlinkio\Shlink\Core\Config\EnvVars;
|
2021-09-26 06:25:02 -05: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 10:10:10 -06:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_ROUND_BLOCK_SIZE;
|
2021-09-26 06:25:02 -05:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_SIZE;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
'qr_codes' => [
|
2022-04-23 05:44:17 -05: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(
|
2022-01-20 13:16:37 -06:00
|
|
|
DEFAULT_QR_CODE_ERROR_CORRECTION,
|
|
|
|
),
|
2022-04-23 05:44:17 -05:00
|
|
|
'round_block_size' => (bool) EnvVars::DEFAULT_QR_CODE_ROUND_BLOCK_SIZE->loadFromEnv(
|
2022-01-20 13:16:37 -06:00
|
|
|
DEFAULT_QR_CODE_ROUND_BLOCK_SIZE,
|
|
|
|
),
|
2021-09-26 06:25:02 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|