From b9c9531aa480ad52de21577ca7d4dea0eee64193 Mon Sep 17 00:00:00 2001
From: Gergely Lekli <15613-glekli@users.noreply.drupalcode.org>
Date: Tue, 13 Feb 2024 12:11:06 -0800
Subject: [PATCH] Update type declarations

---
 src/Service/AccessCodeManager.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/Service/AccessCodeManager.php b/src/Service/AccessCodeManager.php
index c353cea..aedbc7e 100644
--- a/src/Service/AccessCodeManager.php
+++ b/src/Service/AccessCodeManager.php
@@ -2,15 +2,15 @@
 
 namespace Drupal\access_code\Service;
 
-use Drupal\Component\Datetime\Time;
-use Drupal\Core\Config\ConfigFactory;
+use Drupal\Component\Datetime\TimeInterface;
+use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Database\Connection;
-use Drupal\Core\Extension\ModuleHandler;
+use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Link;
-use Drupal\Core\Logger\LoggerChannelFactory;
-use Drupal\Core\Messenger\Messenger;
-use Drupal\Core\Routing\RedirectDestination;
+use Drupal\Core\Logger\LoggerChannelFactoryInterface;
+use Drupal\Core\Messenger\MessengerInterface;
+use Drupal\Core\Routing\RedirectDestinationInterface;
 use Drupal\Core\Session\AccountProxy;
 use Drupal\Core\StringTranslation\StringTranslationTrait;
 use Drupal\Core\Url;
@@ -77,7 +77,7 @@ class AccessCodeManager {
   /**
    * Constructor.
    */
-  public function __construct(ConfigFactory $config_factory, LoggerChannelFactory $logger_factory, Connection $database, AccountProxy $current_user, UserDataInterface $user_data, Time $time, ModuleHandler $handler, RequestStack $stack, RedirectDestination $destination, Messenger $messenger) {
+  public function __construct(ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, Connection $database, AccountProxy $current_user, UserDataInterface $user_data, TimeInterface $time, ModuleHandlerInterface $handler, RequestStack $stack, RedirectDestinationInterface $destination, MessengerInterface $messenger) {
     $this->config = $config_factory->get('access_code.settings');
     $this->logger = $logger_factory->get('access_code');
     $this->database = $database;
-- 
GitLab