fix: Add missing dependency.

This commit is contained in:
Pol Dellaiera 2021-09-29 21:50:44 +02:00
parent 00259dae20
commit 9a34aa59bb

View File

@ -12,6 +12,7 @@ namespace Chill\WopiBundle\Service\Wopi;
use ChampsLibres\WopiLib\Contract\Service\DocumentManagerInterface; use ChampsLibres\WopiLib\Contract\Service\DocumentManagerInterface;
use ChampsLibres\WopiLib\Contract\Service\WopiInterface; use ChampsLibres\WopiLib\Contract\Service\WopiInterface;
use loophp\psr17\Psr17Interface; use loophp\psr17\Psr17Interface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Http\Message\RequestInterface; use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
@ -19,6 +20,8 @@ use Symfony\Component\Security\Core\User\UserProviderInterface;
final class ChillWopi implements WopiInterface final class ChillWopi implements WopiInterface
{ {
private CacheItemPoolInterface $cache;
private DocumentManagerInterface $documentManager; private DocumentManagerInterface $documentManager;
private Psr17Interface $psr17; private Psr17Interface $psr17;
@ -28,11 +31,13 @@ final class ChillWopi implements WopiInterface
private WopiInterface $wopi; private WopiInterface $wopi;
public function __construct( public function __construct(
CacheItemPoolInterface $cache,
DocumentManagerInterface $documentManager, DocumentManagerInterface $documentManager,
Psr17Interface $psr17, Psr17Interface $psr17,
UserProviderInterface $userProvider, UserProviderInterface $userProvider,
WopiInterface $wopi WopiInterface $wopi
) { ) {
$this->cache = $cache;
$this->documentManager = $documentManager; $this->documentManager = $documentManager;
$this->psr17 = $psr17; $this->psr17 = $psr17;
$this->userProvider = $userProvider; $this->userProvider = $userProvider;