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;