1
0
Fork 0

Added realpath to VcsDriver constructor

See https://github.com/composer/composer/pull/1828
pull/1950/head
Justin Rovang 2013-05-29 17:53:18 -05:00
parent 5d360ab43b
commit 60e95aed76
1 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,13 @@ abstract class VcsDriver implements VcsDriverInterface
*/ */
final public function __construct(array $repoConfig, IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null) final public function __construct(array $repoConfig, IOInterface $io, Config $config, ProcessExecutor $process = null, RemoteFilesystem $remoteFilesystem = null)
{ {
if (self::isLocalUrl($repoConfig['url'])) {
$repoConfig['url'] = realpath(
preg_replace('/^file:\/\//', '', $repoConfig['url'])
);
}
$this->url = $repoConfig['url']; $this->url = $repoConfig['url'];
$this->originUrl = $repoConfig['url']; $this->originUrl = $repoConfig['url'];
$this->repoConfig = $repoConfig; $this->repoConfig = $repoConfig;