diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php index 0a70ba2b66ecc06b4cb2ab19bfe9124af1bd5c50..7b72f326049720d56a89e16192067041628d08e1 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandler.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php @@ -5,13 +5,12 @@ use Drupal\Component\Graph\Graph; use Drupal\Component\Utility\NestedArray; use Drupal\Core\Cache\CacheBackendInterface; -use Drupal\Core\DestructableInterface; use Drupal\Core\Extension\Exception\UnknownExtensionException; /** * Class that manages modules in a Drupal installation. */ -class ModuleHandler implements ModuleHandlerInterface, DestructableInterface { +class ModuleHandler implements ModuleHandlerInterface { /** * List of loaded files. diff --git a/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php b/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php index b32c2be9082a74e4d8106de867000e9113b20459..afaf8073683881b7dd61629d3683080690cfd3d4 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php @@ -2,6 +2,8 @@ namespace Drupal\Core\Extension; +use Drupal\Core\DestructableInterface; + /** * Interface for classes that manage a set of enabled modules. * @@ -9,7 +11,7 @@ * responsible for loading module files and maintaining information about module * dependencies and hook implementations. */ -interface ModuleHandlerInterface { +interface ModuleHandlerInterface extends DestructableInterface { /** * Includes a module's .module file.