Issues (90)

config/autoload/url-shortener.global.php (3 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_CACHE_LIFETIME;
0 ignored issues
show
The constant Shlinkio\Shlink\Core\DEF...REDIRECT_CACHE_LIFETIME was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
6
use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE;
0 ignored issues
show
The constant Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
7
use const Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH;
0 ignored issues
show
The constant Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
8
9
return [
10
11
    'url_shortener' => [
12
        'domain' => [
13
            'schema' => 'https',
14
            'hostname' => '',
15
        ],
16
        'validate_url' => false,
17
        'anonymize_remote_addr' => true,
18
        'visits_webhooks' => [],
19
        'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH,
20
        'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE,
21
        'redirect_cache_lifetime' => DEFAULT_REDIRECT_CACHE_LIFETIME,
22
    ],
23
24
];
25