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

Breadcrumb

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

function SvnDriver::normalizeUrl

An absolute path (leading '/') is converted to a file:// url.

2 calls to SvnDriver::normalizeUrl()
SvnDriver::initialize in vendor/composer/composer/src/Composer/Repository/Vcs/SvnDriver.php
@inheritDoc
SvnDriver::supports in vendor/composer/composer/src/Composer/Repository/Vcs/SvnDriver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Repository/Vcs/SvnDriver.php, line 361

Class

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

Namespace

Composer\Repository\Vcs

Code

protected static function normalizeUrl(string $url) : string {
    $fs = new Filesystem();
    if ($fs->isAbsolutePath($url)) {
        return 'file://' . strtr($url, '\\', '/');
    }
    return $url;
}
RSS feed
Powered by Drupal