diff --git a/core/lib/Drupal/Core/DependencyInjection/UpdateDependenciesTrait.php b/core/lib/Drupal/Core/DependencyInjection/UpdateDependenciesTrait.php index 2dabbc0..f37807a 100644 --- a/core/lib/Drupal/Core/DependencyInjection/UpdateDependenciesTrait.php +++ b/core/lib/Drupal/Core/DependencyInjection/UpdateDependenciesTrait.php @@ -10,11 +10,15 @@ /** * Provides a trait which automatically updates dependencies from the container. + * + * Classes which trigger a container rebuild should point to the instances of + * the services with the new container. Calling the ::updateDependencies() + * method takes care of that. */ trait UpdateDependenciesTrait { /** - * Updates all external dependencies and refetch it from the container. + * Updates all external dependencies and refetch them from the container. * * @param \Symfony\Component\DependencyInjection\ContainerInterface $container * The container. diff --git a/core/lib/Drupal/Core/Extension/ModuleInstaller.php b/core/lib/Drupal/Core/Extension/ModuleInstaller.php index 91444df..ed763fa 100644 --- a/core/lib/Drupal/Core/Extension/ModuleInstaller.php +++ b/core/lib/Drupal/Core/Extension/ModuleInstaller.php @@ -13,7 +13,7 @@ use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Config\ConfigInstallerInterface; use Drupal\Core\Config\ConfigManagerInterface; -use Drupal\Core\DependencyInjection\DependencyReinjectionTrait; +use Drupal\Core\DependencyInjection\UpdateDependenciesTrait; use Drupal\Core\DrupalKernelInterface; use Drupal\Component\Utility\String; use Drupal\Core\Entity\EntityManagerInterface; @@ -31,7 +31,7 @@ */ class ModuleInstaller implements ModuleInstallerInterface { - use DependencyReinjectionTrait; + use UpdateDependenciesTrait; /** * The module handler.