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

Breadcrumb

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

function Perforce::checkServerExists

1 call to Perforce::checkServerExists()
PerforceDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/PerforceDriver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Util/Perforce.php, line 83

Class

Perforce
@author Matt Whittom <Matt.Whittom@veteransunited.com>

Namespace

Composer\Util

Code

public static function checkServerExists(string $url, ProcessExecutor $processExecutor) : bool {
    return 0 === $processExecutor->execute([
        'p4',
        '-p',
        $url,
        'info',
        '-s',
    ], $ignoredOutput);
}
RSS feed
Powered by Drupal