Skip to content
Snippets Groups Projects

Issue #3364958: Stages should be destroyed in the background, during cron runs

Compare and
10 files
+ 96
139
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -5,9 +5,9 @@ declare(strict_types = 1);
namespace Drupal\automatic_updates_extensions;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\TempStore\SharedTempStoreFactory;
use Drupal\package_manager\Cleaner;
use Drupal\package_manager\ComposerInspector;
use Drupal\package_manager\FailureMarker;
use Drupal\package_manager\LegacyVersionUtility;
@@ -41,8 +41,8 @@ class ExtensionUpdateStage extends StageBase {
* The stager service.
* @param \PhpTuf\ComposerStager\API\Core\CommitterInterface $committer
* The committer service.
* @param \Drupal\Core\File\FileSystemInterface $fileSystem
* The file system service.
* @param \Drupal\package_manager\Cleaner $cleaner
* The cleaner service.
* @param \Symfony\Contracts\EventDispatcher\EventDispatcherInterface $eventDispatcher
* The event dispatcher service.
* @param \Drupal\Core\TempStore\SharedTempStoreFactory $tempStoreFactory
@@ -60,14 +60,14 @@ class ExtensionUpdateStage extends StageBase {
BeginnerInterface $beginner,
StagerInterface $stager,
CommitterInterface $committer,
FileSystemInterface $fileSystem,
Cleaner $cleaner,
EventDispatcherInterface $eventDispatcher,
SharedTempStoreFactory $tempStoreFactory,
TimeInterface $time,
PathFactoryInterface $pathFactory,
FailureMarker $failureMarker,
) {
parent::__construct($pathLocator, $beginner, $stager, $committer, $fileSystem, $eventDispatcher, $tempStoreFactory, $time, $pathFactory, $failureMarker);
parent::__construct($pathLocator, $beginner, $stager, $committer, $cleaner, $eventDispatcher, $tempStoreFactory, $time, $pathFactory, $failureMarker);
}
/**
Loading