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

Breadcrumb

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

function FossilDriver::getFileContent

@inheritDoc

Overrides VcsDriverInterface::getFileContent

File

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

Class

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

Namespace

Composer\Repository\Vcs

Code

public function getFileContent(string $file, string $identifier) : ?string {
    $this->process
        ->execute([
        'fossil',
        'cat',
        '-r',
        $identifier,
        '--',
        $file,
    ], $content, $this->checkoutDir);
    if ('' === trim($content)) {
        return null;
    }
    return $content;
}
RSS feed
Powered by Drupal