Add missing router service.

This commit is contained in:
Pol Dellaiera 2021-08-19 16:28:36 +02:00 committed by Marc Ducobu
parent 7b5e971b8d
commit eeb34d25dc

View File

@ -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