Add missing psr17 service.

This commit is contained in:
Pol Dellaiera 2021-08-19 16:27:41 +02:00 committed by Marc Ducobu
parent 07c3594107
commit 7b5e971b8d

View File

@ -14,6 +14,7 @@ use ChampsLibres\WopiLib\Discovery\WopiDiscoveryInterface;
use Chill\DocStoreBundle\Repository\StoredObjectRepository;
use Chill\WopiBundle\Service\Controller\ResponderInterface;
use Exception;
use loophp\psr17\Psr17Interface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Security\Core\Security;
@ -30,18 +31,22 @@ final class Test
private Security $security;
private Psr17Interface $psr17;
public function __construct(
StoredObjectRepository $storedObjectRepository,
WopiConfigurationInterface $wopiConfiguration,
WopiDiscoveryInterface $wopiDiscovery,
ResponderInterface $responder,
Security $security
Security $security,
Psr17Interface $psr17
) {
$this->storedObjectRepository = $storedObjectRepository;
$this->wopiConfiguration = $wopiConfiguration;
$this->wopiDiscovery = $wopiDiscovery;
$this->responder = $responder;
$this->security = $security;
$this->psr17 = $psr17;
}
public function __invoke(string $fileId): Response