From 9f09c2ad6f84d0d9ef20acd45799f315689772eb Mon Sep 17 00:00:00 2001 From: Rolando Date: Thu, 22 Feb 2024 14:40:38 -0500 Subject: [PATCH] SingleDirectoryComponent::__construct should type against interface --- src/Command/SingleDirectoryComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/SingleDirectoryComponent.php b/src/Command/SingleDirectoryComponent.php index 570de1c4f..def9db32b 100644 --- a/src/Command/SingleDirectoryComponent.php +++ b/src/Command/SingleDirectoryComponent.php @@ -2,10 +2,10 @@ namespace DrupalCodeGenerator\Command; +use Drupal\Core\Asset\LibraryDiscoveryInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ThemeHandlerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; -use Drupal\Core\Asset\LibraryDiscovery; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use DrupalCodeGenerator\Application; use DrupalCodeGenerator\Asset\AssetCollection; @@ -35,7 +35,7 @@ final class SingleDirectoryComponent extends BaseGenerator implements ContainerI public function __construct( private readonly ModuleHandlerInterface $moduleHandler, private readonly ThemeHandlerInterface $themeHandler, - private readonly LibraryDiscovery $libraryDiscovery, + private readonly LibraryDiscoveryInterface $libraryDiscovery, ) { parent::__construct(); }