Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FossilDriver.php

function FossilDriver::checkFossil

Check that fossil can be invoked via command line.

1 call to FossilDriver::checkFossil()
FossilDriver::initialize in vendor/composer/composer/src/Composer/Repository/Vcs/FossilDriver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Repository/Vcs/FossilDriver.php, line 72

Class

FossilDriver
@author BohwaZ <http://bohwaz.net/&gt;

Namespace

Composer\Repository\Vcs

Code

protected function checkFossil() : void {
    if (0 !== $this->process
        ->execute([
        'fossil',
        'version',
    ], $ignoredOutput)) {
        throw new \RuntimeException("fossil was not found, check that it is installed and in your PATH env.\n\n" . $this->process
            ->getErrorOutput());
    }
}
RSS feed
Powered by Drupal