Skip to content
Snippets Groups Projects
Unverified Commit 6d8ab065 authored by Ted Bowman's avatar Ted Bowman
Browse files

package_manager/src/EventSubscriber WIP

parent c0b9bacd
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !162. Comments created here will be created in the context of that merge request.
...@@ -12,7 +12,7 @@ use PhpTuf\ComposerStager\Domain\Process\Runner\ComposerRunnerInterface; ...@@ -12,7 +12,7 @@ use PhpTuf\ComposerStager\Domain\Process\Runner\ComposerRunnerInterface;
use PhpTuf\ComposerStager\Exception\ExceptionInterface; use PhpTuf\ComposerStager\Exception\ExceptionInterface;
/** /**
* Validates that the Composer executable can be found in the correct version. * Validates the Composer executable is the correct version.
*/ */
class ComposerExecutableValidator implements PreOperationStageValidatorInterface, OutputCallbackInterface { class ComposerExecutableValidator implements PreOperationStageValidatorInterface, OutputCallbackInterface {
......
...@@ -11,7 +11,7 @@ use Drupal\Core\StringTranslation\TranslationInterface; ...@@ -11,7 +11,7 @@ use Drupal\Core\StringTranslation\TranslationInterface;
use Drupal\package_manager\PathLocator; use Drupal\package_manager\PathLocator;
/** /**
* Validates that there is enough free disk space to do automatic updates. * Validates that there is enough free disk space to do staging operations.
*/ */
class DiskSpaceValidator implements PreOperationStageValidatorInterface { class DiskSpaceValidator implements PreOperationStageValidatorInterface {
...@@ -103,7 +103,8 @@ class DiskSpaceValidator implements PreOperationStageValidatorInterface { ...@@ -103,7 +103,8 @@ class DiskSpaceValidator implements PreOperationStageValidatorInterface {
$vendor_path = $this->pathLocator->getVendorDirectory(); $vendor_path = $this->pathLocator->getVendorDirectory();
$messages = []; $messages = [];
// @todo Make this configurable. // @todo Make this configurable or set to a different value in
// https://www.drupal.org/i/3166416.
$minimum_mb = 1024; $minimum_mb = 1024;
$minimum_bytes = Bytes::toNumber($minimum_mb . 'M'); $minimum_bytes = Bytes::toNumber($minimum_mb . 'M');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment