mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Implement support for tilde expansion, mainly for path repositories
This commit is contained in:
parent
bc1d92aeee
commit
23ad67b3be
2 changed files with 29 additions and 2 deletions
|
@ -18,6 +18,7 @@ use Composer\Json\JsonFile;
|
|||
use Composer\Package\Loader\ArrayLoader;
|
||||
use Composer\Package\Version\VersionGuesser;
|
||||
use Composer\Package\Version\VersionParser;
|
||||
use Composer\Util\Platform;
|
||||
use Composer\Util\ProcessExecutor;
|
||||
|
||||
/**
|
||||
|
@ -101,7 +102,7 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
|||
}
|
||||
|
||||
$this->loader = new ArrayLoader(null, true);
|
||||
$this->url = $repoConfig['url'];
|
||||
$this->url = Platform::expandPath($repoConfig['url']);
|
||||
$this->process = new ProcessExecutor($io);
|
||||
$this->versionGuesser = new VersionGuesser($config, $this->process, new VersionParser());
|
||||
$this->repoConfig = $repoConfig;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue