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 loophp\psr17\Psr17Interface;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Core\Security;
final class Test final class Test
@ -33,13 +34,16 @@ final class Test
private Psr17Interface $psr17; private Psr17Interface $psr17;
private RouterInterface $router;
public function __construct( public function __construct(
StoredObjectRepository $storedObjectRepository, StoredObjectRepository $storedObjectRepository,
WopiConfigurationInterface $wopiConfiguration, WopiConfigurationInterface $wopiConfiguration,
WopiDiscoveryInterface $wopiDiscovery, WopiDiscoveryInterface $wopiDiscovery,
ResponderInterface $responder, ResponderInterface $responder,
Security $security, Security $security,
Psr17Interface $psr17 Psr17Interface $psr17,
RouterInterface $router
) { ) {
$this->storedObjectRepository = $storedObjectRepository; $this->storedObjectRepository = $storedObjectRepository;
$this->wopiConfiguration = $wopiConfiguration; $this->wopiConfiguration = $wopiConfiguration;
@ -47,6 +51,7 @@ final class Test
$this->responder = $responder; $this->responder = $responder;
$this->security = $security; $this->security = $security;
$this->psr17 = $psr17; $this->psr17 = $psr17;
$this->router = $router;
} }
public function __invoke(string $fileId): Response public function __invoke(string $fileId): Response