diff --git a/modules/geolocation_leaflet/src/Plugin/geolocation/LayerFeature/LeafletMarkerIcon.php b/modules/geolocation_leaflet/src/Plugin/geolocation/LayerFeature/LeafletMarkerIcon.php
index daf73a0b6f5eb09b7c9b0bd8fad793161fa836a4..774d113d114b671eada2d481c5a6673e8ac69732 100644
--- a/modules/geolocation_leaflet/src/Plugin/geolocation/LayerFeature/LeafletMarkerIcon.php
+++ b/modules/geolocation_leaflet/src/Plugin/geolocation/LayerFeature/LeafletMarkerIcon.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\geolocation_leaflet\Plugin\geolocation\LayerFeature;
 
-use Drupal\Core\Asset\LibraryDiscovery;
+use Drupal\Core\Asset\LibraryDiscoveryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\File\FileSystemInterface;
 use Drupal\Core\File\FileUrlGeneratorInterface;
@@ -36,7 +36,7 @@ class LeafletMarkerIcon extends LayerFeatureBase implements ContainerFactoryPlug
     ModuleHandlerInterface $moduleHandler,
     FileSystemInterface $fileSystem,
     Token $token,
-    LibraryDiscovery $libraryDiscovery,
+    LibraryDiscoveryInterface $libraryDiscovery,
     protected FileUrlGeneratorInterface $fileUrlGenerator,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $moduleHandler, $fileSystem, $token, $libraryDiscovery);
diff --git a/src/LayerFeatureBase.php b/src/LayerFeatureBase.php
index 6d542ee75d8802f0c0c8306ff2bee395013ebe26..57ccd26821c9d8d13f7492fd4ed8664af3a5a2e6 100644
--- a/src/LayerFeatureBase.php
+++ b/src/LayerFeatureBase.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\geolocation;
 
-use Drupal\Core\Asset\LibraryDiscovery;
+use Drupal\Core\Asset\LibraryDiscoveryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\File\FileSystemInterface;
 use Drupal\Core\Form\FormStateInterface;
@@ -43,7 +43,7 @@ abstract class LayerFeatureBase extends PluginBase implements LayerFeatureInterf
     protected ModuleHandlerInterface $moduleHandler,
     protected FileSystemInterface $fileSystem,
     protected Token $token,
-    protected LibraryDiscovery $libraryDiscovery,
+    protected LibraryDiscoveryInterface $libraryDiscovery,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
   }
diff --git a/src/MapFeatureBase.php b/src/MapFeatureBase.php
index 6fb61b895f0640ec0d7fc3a8597199bdcc7fc630..76206d475fdc4b437a136c7da29ee2b07bcccb0e 100644
--- a/src/MapFeatureBase.php
+++ b/src/MapFeatureBase.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\geolocation;
 
-use Drupal\Core\Asset\LibraryDiscovery;
+use Drupal\Core\Asset\LibraryDiscoveryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\File\FileSystemInterface;
 use Drupal\Core\Form\FormStateInterface;
@@ -43,7 +43,7 @@ abstract class MapFeatureBase extends PluginBase implements MapFeatureInterface,
     protected ModuleHandlerInterface $moduleHandler,
     protected FileSystemInterface $fileSystem,
     protected Token $token,
-    protected LibraryDiscovery $libraryDiscovery,
+    protected LibraryDiscoveryInterface $libraryDiscovery,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
 
diff --git a/src/Plugin/geolocation/MapFeature/ControlCustomGeocoder.php b/src/Plugin/geolocation/MapFeature/ControlCustomGeocoder.php
index 88afc4bfc46a87ce5f72de65f833cc759254b974..b132959926e4fa38ffe3537c987c471ccf0b85e5 100644
--- a/src/Plugin/geolocation/MapFeature/ControlCustomGeocoder.php
+++ b/src/Plugin/geolocation/MapFeature/ControlCustomGeocoder.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\geolocation\Plugin\geolocation\MapFeature;
 
-use Drupal\Core\Asset\LibraryDiscovery;
+use Drupal\Core\Asset\LibraryDiscoveryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\File\FileSystemInterface;
 use Drupal\Core\Utility\Token;
@@ -33,7 +33,7 @@ class ControlCustomGeocoder extends ControlCustomElementBase {
     ModuleHandlerInterface $module_handler,
     FileSystemInterface $file_system,
     Token $token,
-    LibraryDiscovery $libraryDiscovery,
+    LibraryDiscoveryInterface $libraryDiscovery,
     protected GeocoderManager $geocoderManager,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $module_handler, $file_system, $token, $libraryDiscovery);
diff --git a/src/Plugin/geolocation/MapFeature/ControlTileLayers.php b/src/Plugin/geolocation/MapFeature/ControlTileLayers.php
index 78698417c156a5db08ae934b91ed3abf59cc4a62..04ac32b95fb97245ffd36d95f3800b0ac8c025df 100644
--- a/src/Plugin/geolocation/MapFeature/ControlTileLayers.php
+++ b/src/Plugin/geolocation/MapFeature/ControlTileLayers.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\geolocation\Plugin\geolocation\MapFeature;
 
-use Drupal\Core\Asset\LibraryDiscovery;
+use Drupal\Core\Asset\LibraryDiscoveryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\File\FileSystemInterface;
 use Drupal\Core\Utility\Token;
@@ -33,7 +33,7 @@ class ControlTileLayers extends ControlCustomElementBase {
     ModuleHandlerInterface $moduleHandler,
     FileSystemInterface $fileSystem,
     Token $token,
-    LibraryDiscovery $libraryDiscovery,
+    LibraryDiscoveryInterface $libraryDiscovery,
     protected TileLayerProviderManager $tileLayerProviderManager,
   ) {
     parent::__construct($configuration, $plugin_id, $plugin_definition, $moduleHandler, $fileSystem, $token, $libraryDiscovery);