fix typing and package deps to satisfy DI compilation

This commit is contained in:
Julien Fastré 2022-07-03 21:31:57 +02:00
parent d375abf593
commit 20b70f9eed
3 changed files with 7 additions and 4 deletions

View File

@ -24,6 +24,7 @@
"nyholm/psr7": "^1.4", "nyholm/psr7": "^1.4",
"ocramius/package-versions": "^1.10 || ^2", "ocramius/package-versions": "^1.10 || ^2",
"odolbeau/phone-number-bundle": "^3.6", "odolbeau/phone-number-bundle": "^3.6",
"ovh/ovh": "^3.0",
"phpoffice/phpspreadsheet": "^1.16", "phpoffice/phpspreadsheet": "^1.16",
"ramsey/uuid-doctrine": "^1.7", "ramsey/uuid-doctrine": "^1.7",
"sensio/framework-extra-bundle": "^5.5", "sensio/framework-extra-bundle": "^5.5",

View File

@ -15,6 +15,7 @@ use Chill\MainBundle\Entity\User;
use DateTimeImmutable; use DateTimeImmutable;
use LogicException; use LogicException;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use function array_key_exists; use function array_key_exists;
/** /**
@ -32,10 +33,10 @@ class MapCalendarToUser
private LoggerInterface $logger; private LoggerInterface $logger;
private MachineHttpClient $machineHttpClient; private HttpClientInterface $machineHttpClient;
public function __construct( public function __construct(
MachineHttpClient $machineHttpClient, HttpClientInterface $machineHttpClient,
LoggerInterface $logger LoggerInterface $logger
) { ) {
$this->machineHttpClient = $machineHttpClient; $this->machineHttpClient = $machineHttpClient;

View File

@ -29,6 +29,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\Translation\TranslatorInterface; use Symfony\Contracts\Translation\TranslatorInterface;
use function array_key_exists; use function array_key_exists;
use function count; use function count;
@ -43,7 +44,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface
private LoggerInterface $logger; private LoggerInterface $logger;
private MachineHttpClient $machineHttpClient; private HttpClientInterface $machineHttpClient;
private MapCalendarToUser $mapCalendarToUser; private MapCalendarToUser $mapCalendarToUser;
@ -60,7 +61,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface
public function __construct( public function __construct(
CalendarRepository $calendarRepository, CalendarRepository $calendarRepository,
CalendarRangeRepository $calendarRangeRepository, CalendarRangeRepository $calendarRangeRepository,
MachineHttpClient $machineHttpClient, HttpClientInterface $machineHttpClient,
MapCalendarToUser $mapCalendarToUser, MapCalendarToUser $mapCalendarToUser,
LoggerInterface $logger, LoggerInterface $logger,
OnBehalfOfUserTokenStorage $tokenStorage, OnBehalfOfUserTokenStorage $tokenStorage,