diff --git a/src/Bundle/ChillWopiBundle/src/Controller/Test.php b/src/Bundle/ChillWopiBundle/src/Controller/Test.php index ecba091e4..41fe4d2db 100644 --- a/src/Bundle/ChillWopiBundle/src/Controller/Test.php +++ b/src/Bundle/ChillWopiBundle/src/Controller/Test.php @@ -17,6 +17,7 @@ use Exception; use loophp\psr17\Psr17Interface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +use Symfony\Component\Routing\RouterInterface; use Symfony\Component\Security\Core\Security; final class Test @@ -33,13 +34,16 @@ final class Test private Psr17Interface $psr17; + private RouterInterface $router; + public function __construct( StoredObjectRepository $storedObjectRepository, WopiConfigurationInterface $wopiConfiguration, WopiDiscoveryInterface $wopiDiscovery, ResponderInterface $responder, Security $security, - Psr17Interface $psr17 + Psr17Interface $psr17, + RouterInterface $router ) { $this->storedObjectRepository = $storedObjectRepository; $this->wopiConfiguration = $wopiConfiguration; @@ -47,6 +51,7 @@ final class Test $this->responder = $responder; $this->security = $security; $this->psr17 = $psr17; + $this->router = $router; } public function __invoke(string $fileId): Response