diff --git a/core-dev/src/Command/ModuleInstallCommand.php b/core-dev/src/Command/ModuleInstallCommand.php index b6dc17e..8b43c9e 100644 --- a/core-dev/src/Command/ModuleInstallCommand.php +++ b/core-dev/src/Command/ModuleInstallCommand.php @@ -29,8 +29,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $module_installer = \Drupal::service('module_installer'); assert($module_installer instanceof ModuleInstallerInterface); $module_installer->install($modules); - $kernel = \Drupal::service('kernel'); - $kernel->rebuildContainer(); + drupal_flush_all_caches(); } return 0; }