mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests.
This commit is contained in:
parent
d8dbcab710
commit
93ebfd54b1
11 changed files with 35 additions and 24 deletions
|
@ -80,7 +80,7 @@ class VcsRepository extends ArrayRepository
|
|||
}
|
||||
|
||||
foreach ($this->drivers as $driver) {
|
||||
if ($driver::supports($this->io, $this->url)) {
|
||||
if ($driver::supports($this->io, $this->url, $this->config)) {
|
||||
$driver = new $driver($this->repoConfig, $this->io, $this->config);
|
||||
$driver->initialize();
|
||||
|
||||
|
@ -89,7 +89,7 @@ class VcsRepository extends ArrayRepository
|
|||
}
|
||||
|
||||
foreach ($this->drivers as $driver) {
|
||||
if ($driver::supports($this->io, $this->url, true)) {
|
||||
if ($driver::supports($this->io, $this->url, $this->config, true)) {
|
||||
$driver = new $driver($this->repoConfig, $this->io, $this->config);
|
||||
$driver->initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue