Skip to content
Snippets Groups Projects

Issue #3268363: Create a build test to confirm that things are reloaded after the stage is applied

Merged Issue #3268363: Create a build test to confirm that things are reloaded after the stage is applied
All threads resolved!
All threads resolved!
Files
16
@@ -331,6 +331,13 @@ class Stage {
@@ -331,6 +331,13 @@ class Stage {
$this->committer->commit($stage_dir, $active_dir, $event->getExcludedPaths());
$this->committer->commit($stage_dir, $active_dir, $event->getExcludedPaths());
$this->tempStore->delete(self::TEMPSTORE_APPLY_TIME_KEY);
$this->tempStore->delete(self::TEMPSTORE_APPLY_TIME_KEY);
 
 
// Rebuild the container and clear all caches, to ensure that new services
 
// are picked up.
 
drupal_flush_all_caches();
 
// @todo Use ContainerAwareInterface or similar to avoid \Drupal.
 
$this->eventDispatcher = \Drupal::service('event_dispatcher');
 
$this->dispatch(new PostApplyEvent($this));
$this->dispatch(new PostApplyEvent($this));
}
}
Loading