Skip to content

Commit 074ceb8

Browse files
authored
Flush all caches after installing a module (#51)
1 parent 004be1b commit 074ceb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core-dev/src/Command/ModuleInstallCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
2929
$module_installer = \Drupal::service('module_installer');
3030
assert($module_installer instanceof ModuleInstallerInterface);
3131
$module_installer->install($modules);
32-
$kernel = \Drupal::service('kernel');
33-
$kernel->rebuildContainer();
32+
drupal_flush_all_caches();
3433
}
3534
return 0;
3635
}

0 commit comments

Comments
 (0)