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

Breadcrumb

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

function FossilDriver::getChangeDate

@inheritDoc

Overrides VcsDriverInterface::getChangeDate

File

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

Class

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

Namespace

Composer\Repository\Vcs

Code

public function getChangeDate(string $identifier) : ?\DateTimeImmutable {
    $this->process
        ->execute([
        'fossil',
        'finfo',
        '-b',
        '-n',
        '1',
        'composer.json',
    ], $output, $this->checkoutDir);
    [
        ,
        $date,
    ] = explode(' ', trim($output), 3);
    return new \DateTimeImmutable($date, new \DateTimeZone('UTC'));
}
RSS feed
Powered by Drupal