Implements Drupal\Core\DrupalKernelInterface::updateModules().
Overrides DrupalKernelInterface::updateModules
public function updateModules(array $module_list, array $module_filenames = array()) {
$this->newModuleList = $module_list;
foreach ($module_filenames as $module => $filename) {
$this->moduleData[$module] = (object) array(
'uri' => $filename,
);
}
// If we haven't yet booted, we don't need to do anything: the new module
// list will take effect when boot() is called. If we have already booted,
// then reboot in order to refresh the bundle list and container.
if ($this->booted) {
$this->booted = FALSE;
$this
->boot();
}
}