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

Breadcrumb

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

function SvnDownloader::doInstall

@inheritDoc

Overrides VcsDownloader::doInstall

File

vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php, line 48

Class

SvnDownloader
@author Ben Bieker <mail@ben-bieker.de> @author Till Klampaeckel <till@php.net>

Namespace

Composer\Downloader

Code

protected function doInstall(PackageInterface $package, string $path, string $url) : PromiseInterface {
    SvnUtil::cleanEnv();
    $ref = $package->getSourceReference();
    $repo = $package->getRepository();
    if ($repo instanceof VcsRepository) {
        $repoConfig = $repo->getRepoConfig();
        if (array_key_exists('svn-cache-credentials', $repoConfig)) {
            $this->cacheCredentials = (bool) $repoConfig['svn-cache-credentials'];
        }
    }
    $this->io
        ->writeError(" Checking out " . $package->getSourceReference());
    $this->execute($package, $url, [
        'svn',
        'co',
    ], sprintf("%s/%s", $url, $ref), null, $path);
    return \React\Promise\resolve(null);
}

API Navigation

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