Skip to content
Snippets Groups Projects

Issue #3230250: Update Composer Stager to 0.2.0

2 files
+ 17
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -60,6 +60,17 @@ class ExcludedPathsSubscriber implements EventSubscriberInterface {
$this->streamWrapperManager = $stream_wrapper_manager;
}
/**
* Reacts before staged updates are committed the active directory.
*
* @param \Drupal\automatic_updates\Event\PreCommitEvent $event
* The event object.
*/
public function preCommit(PreCommitEvent $event): void {
// Don't copy anything from the staging area's sites/default.
$event->excludePath('sites/default');
}
/**
* Reacts to the beginning of an update process.
*
@@ -136,6 +147,7 @@ class ExcludedPathsSubscriber implements EventSubscriberInterface {
public static function getSubscribedEvents() {
return [
AutomaticUpdatesEvents::PRE_START => 'preStart',
AutomaticUpdatesEvents::PRE_COMMIT => 'preCommit',
];
}
Loading