From c650a69fc822514a8dd63a69d06fcabe11be38e6 Mon Sep 17 00:00:00 2001 From: lukmzig Date: Fri, 29 Sep 2023 08:30:06 +0200 Subject: [PATCH] fix: add missing default params to cache resolver save method --- src/Lib/CacheResolver.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Lib/CacheResolver.php b/src/Lib/CacheResolver.php index b88f875..bc67e45 100644 --- a/src/Lib/CacheResolver.php +++ b/src/Lib/CacheResolver.php @@ -16,13 +16,21 @@ namespace Pimcore\Bundle\StaticResolverBundle\Lib; +use DateInterval; use Pimcore\Cache; class CacheResolver { - public function save(mixed $data, string $key, array $tags = []): void + public function save( + mixed $data, + string $key, + array $tags = [], + DateInterval|int $lifetime = null, + int $priority = 0, + bool $force = false + ): void { - Cache::save($data, $key, $tags); + Cache::save($data, $key, $tags, $lifetime, $priority, $force); } public function load(string $key): mixed