From f2f07be11f31bda6ad3da436d0a3eb013ffadd97 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 20 Jun 2020 11:07:15 +0200 Subject: [PATCH] Updated to latest installer, supporting redirects customizations --- composer.json | 2 +- config/autoload/installer.global.php | 2 ++ config/autoload/url-shortener.global.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 777463b2..997f8558 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ "shlinkio/shlink-common": "^3.1.0", "shlinkio/shlink-config": "^1.0", "shlinkio/shlink-event-dispatcher": "^1.4", - "shlinkio/shlink-installer": "^5.0.0", + "shlinkio/shlink-installer": "^5.1.0", "shlinkio/shlink-ip-geolocation": "^1.4", "symfony/console": "^5.1", "symfony/filesystem": "^5.1", diff --git a/config/autoload/installer.global.php b/config/autoload/installer.global.php index db1914db..ba0b8332 100644 --- a/config/autoload/installer.global.php +++ b/config/autoload/installer.global.php @@ -37,6 +37,8 @@ return [ Option\Mercure\MercureJwtSecretConfigOption::class, Option\UrlShortener\GeoLiteLicenseKeyConfigOption::class, Option\UrlShortener\IpAnonymizationConfigOption::class, + Option\UrlShortener\RedirectStatusCodeConfigOption::class, + Option\UrlShortener\RedirectCacheLifeTimeConfigOption::class, ], 'installation_commands' => [ diff --git a/config/autoload/url-shortener.global.php b/config/autoload/url-shortener.global.php index ba1f473a..f27210af 100644 --- a/config/autoload/url-shortener.global.php +++ b/config/autoload/url-shortener.global.php @@ -2,6 +2,7 @@ declare(strict_types=1); +use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_CACHE_LIFETIME; use const Shlinkio\Shlink\Core\DEFAULT_REDIRECT_STATUS_CODE; use const Shlinkio\Shlink\Core\DEFAULT_SHORT_CODES_LENGTH; @@ -17,7 +18,7 @@ return [ 'visits_webhooks' => [], 'default_short_codes_length' => DEFAULT_SHORT_CODES_LENGTH, 'redirect_status_code' => DEFAULT_REDIRECT_STATUS_CODE, - 'redirect_cache_lifetime' => 30, + 'redirect_cache_lifetime' => DEFAULT_REDIRECT_CACHE_LIFETIME, ], ];