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

Breadcrumb

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

function Svn::execute

Execute an SVN remote command and try to fix up the process with credentials if necessary.

Parameters

non-empty-list<string> $command SVN command to run:

string $url SVN url:

?string $cwd Working directory:

?string $path Target for a checkout:

bool $verbose Output all output to the user:

Throws

\RuntimeException

File

vendor/composer/composer/src/Composer/Util/Svn.php, line 101

Class

Svn
@author Till Klampaeckel <till@php.net> @author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Util

Code

public function execute(array $command, string $url, ?string $cwd = null, ?string $path = null, bool $verbose = false) : string {
    // Ensure we are allowed to use this URL by config
    $this->config
        ->prohibitUrlByConfig($url, $this->io);
    return $this->executeWithAuthRetry($command, $cwd, $url, $path, $verbose);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal