From 7b5e971b8dcb4707aef4ac2e881e7a62ae534e8b Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 19 Aug 2021 16:27:41 +0200 Subject: [PATCH] Add missing psr17 service. --- src/Bundle/ChillWopiBundle/src/Controller/Test.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillWopiBundle/src/Controller/Test.php b/src/Bundle/ChillWopiBundle/src/Controller/Test.php index ebbe88002..ecba091e4 100644 --- a/src/Bundle/ChillWopiBundle/src/Controller/Test.php +++ b/src/Bundle/ChillWopiBundle/src/Controller/Test.php @@ -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