From 5af4866775f78fdf6108e635e20af01c1e6eb97e Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Thu, 15 Sep 2022 10:55:33 -0400
Subject: [PATCH] ISTWCMS-5809: using the interface for module handler so that
 things work correctly

---
 src/Commands/UwDrushCommands.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Commands/UwDrushCommands.php b/src/Commands/UwDrushCommands.php
index 5718b287..1d821bfb 100644
--- a/src/Commands/UwDrushCommands.php
+++ b/src/Commands/UwDrushCommands.php
@@ -4,7 +4,7 @@ namespace Drupal\uw_cfg_common\Commands;
 
 use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
-use Drupal\Core\Extension\ModuleHandler;
+use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\ProxyClass\Extension\ModuleInstaller;
 use Drupal\uw_cfg_common\Service\UWMissingBlocks;
 use Drupal\uw_cfg_common\UwPermissions\UwPermissions;
@@ -43,7 +43,7 @@ class UwDrushCommands extends DrushCommands {
   /**
    * Module handler.
    *
-   * @var \Drupal\Core\Extension\ModuleHandler
+   * @var \Drupal\Core\Extension\ModuleHandlerInterface
    */
   protected $moduleHandler;
 
@@ -61,7 +61,7 @@ class UwDrushCommands extends DrushCommands {
     EntityTypeManagerInterface $entityTypeManager,
     UWMissingBlocks $missingBlocks,
     ConfigFactoryInterface $configFactory,
-    ModuleHandler $moduleHandler,
+    ModuleHandlerInterface $moduleHandler,
     ModuleInstaller $moduleInstaller
   ) {
     $this->entityTypeManager = $entityTypeManager;
-- 
GitLab