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
|
|
|
|
2024-02-18 07:06:03 -06:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_BG_COLOR;
|
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_COLOR;
|
2023-12-22 06:29:22 -06:00
|
|
|
use const Shlinkio\Shlink\DEFAULT_QR_CODE_ENABLED_FOR_DISABLED_SHORT_URLS;
|
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,
|
|
|
|
),
|
2023-12-22 06:29:22 -06:00
|
|
|
'enabled_for_disabled_short_urls' => (bool) EnvVars::QR_CODE_FOR_DISABLED_SHORT_URLS->loadFromEnv(
|
|
|
|
DEFAULT_QR_CODE_ENABLED_FOR_DISABLED_SHORT_URLS,
|
|
|
|
),
|
2024-02-18 07:06:03 -06:00
|
|
|
'color' => EnvVars::DEFAULT_QR_CODE_COLOR->loadFromEnv(DEFAULT_QR_CODE_COLOR),
|
|
|
|
'bg_color' => EnvVars::DEFAULT_QR_CODE_BG_COLOR->loadFromEnv(DEFAULT_QR_CODE_BG_COLOR),
|
|
|
|
'logo_url' => EnvVars::DEFAULT_QR_CODE_LOGO_URL->loadFromEnv(),
|
2021-09-26 06:25:02 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|