Skip to content

Commit d5f8a50

Browse files
committed
Fixing compatibility with base cache manager
1 parent 80e9ebe commit d5f8a50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CacheManager/CacheManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Liip\ImagineBundle\Imagine\Filter\FilterConfiguration;
1010
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1111
use Symfony\Component\HttpFoundation\RequestStack;
12+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1213
use Symfony\Component\Routing\RouterInterface;
1314

1415
final class CacheManager extends BaseCacheManager
@@ -29,7 +30,7 @@ public function __construct(
2930
$this->requestStack = $requestStack;
3031
}
3132

32-
public function getBrowserPath($path, $filter, array $runtimeConfig = [], $resolver = null): string
33+
public function getBrowserPath($path, $filter, array $runtimeConfig = [], $resolver = null, $referenceType = UrlGeneratorInterface::ABSOLUTE_URL): string
3334
{
3435
if ($this->clientAcceptsWebP()) {
3536
$webPPath = self::getWebPPath($path);

0 commit comments

Comments
 (0)