refactor: consent checks are performed in AbstractProvider and not in child classes

This commit is contained in:
Maël Gangloff
2024-11-01 00:46:25 +01:00
parent 5be90247f4
commit c7a50eed65
29 changed files with 927 additions and 888 deletions

View File

@@ -24,7 +24,7 @@ class ConnectorController extends AbstractController
private readonly EntityManagerInterface $em,
private readonly LoggerInterface $logger,
#[Autowire(service: 'service_container')]
private ContainerInterface $locator
private ContainerInterface $locator,
) {
}

View File

@@ -25,7 +25,7 @@ class DomainRefreshController extends AbstractController
private readonly RDAPService $RDAPService,
private readonly RateLimiterFactory $rdapRequestsLimiter,
private readonly MessageBusInterface $bus,
private readonly LoggerInterface $logger, private readonly KernelInterface $kernel
private readonly LoggerInterface $logger, private readonly KernelInterface $kernel,
) {
}

View File

@@ -32,7 +32,7 @@ class RegistrationController extends AbstractController
private readonly EntityManagerInterface $em,
private readonly SerializerInterface $serializer,
private readonly LoggerInterface $logger,
private readonly KernelInterface $kernel
private readonly KernelInterface $kernel,
) {
}

View File

@@ -16,7 +16,7 @@ class StatisticsController extends AbstractController
private readonly CacheItemPoolInterface $pool,
private readonly DomainRepository $domainRepository,
private readonly WatchListRepository $watchListRepository,
private readonly KernelInterface $kernel
private readonly KernelInterface $kernel,
) {
}

View File

@@ -51,7 +51,7 @@ class WatchListController extends AbstractController
private readonly LoggerInterface $logger,
private readonly ChatNotificationService $chatNotificationService,
#[Autowire(service: 'service_container')]
private ContainerInterface $locator
private ContainerInterface $locator,
) {
}