From 9a34aa59bb20cba83dda2f51f9309bf0693485ee Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 29 Sep 2021 21:50:44 +0200 Subject: [PATCH] fix: Add missing dependency. --- src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php index e9e7e47cc..12bc1b178 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php @@ -12,6 +12,7 @@ namespace Chill\WopiBundle\Service\Wopi; use ChampsLibres\WopiLib\Contract\Service\DocumentManagerInterface; use ChampsLibres\WopiLib\Contract\Service\WopiInterface; use loophp\psr17\Psr17Interface; +use Psr\Cache\CacheItemPoolInterface; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; @@ -19,6 +20,8 @@ use Symfony\Component\Security\Core\User\UserProviderInterface; final class ChillWopi implements WopiInterface { + private CacheItemPoolInterface $cache; + private DocumentManagerInterface $documentManager; private Psr17Interface $psr17; @@ -28,11 +31,13 @@ final class ChillWopi implements WopiInterface private WopiInterface $wopi; public function __construct( + CacheItemPoolInterface $cache, DocumentManagerInterface $documentManager, Psr17Interface $psr17, UserProviderInterface $userProvider, WopiInterface $wopi ) { + $this->cache = $cache; $this->documentManager = $documentManager; $this->psr17 = $psr17; $this->userProvider = $userProvider;