You are here

public function ComposerExecutableValidator::__construct in Automatic Updates 8.2

Constructs a ComposerExecutableValidator object.

Parameters

\PhpTuf\ComposerStager\Infrastructure\Process\Runner\ComposerRunnerInterface $composer: The Composer runner.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.

File

src/Validator/ComposerExecutableValidator.php, line 45

Class

ComposerExecutableValidator
Validates that the Composer executable can be found in the correct version.

Namespace

Drupal\automatic_updates\Validator

Code

public function __construct(ComposerRunnerInterface $composer, TranslationInterface $translation) {
  $this->composer = $composer;
  $this
    ->setStringTranslation($translation);
}