mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add warning in verbose mode if drivers can not be used because of missing openssl
This commit is contained in:
parent
4bed779601
commit
6d5b4d606c
9 changed files with 50 additions and 14 deletions
|
@ -59,7 +59,7 @@ class VcsRepository extends ArrayRepository
|
|||
}
|
||||
|
||||
foreach ($this->drivers as $driver) {
|
||||
if ($driver::supports($this->url)) {
|
||||
if ($driver::supports($this->io, $this->url)) {
|
||||
$driver = new $driver($this->url, $this->io);
|
||||
$driver->initialize();
|
||||
return $driver;
|
||||
|
@ -67,7 +67,7 @@ class VcsRepository extends ArrayRepository
|
|||
}
|
||||
|
||||
foreach ($this->drivers as $driver) {
|
||||
if ($driver::supports($this->url, true)) {
|
||||
if ($driver::supports($this->io, $this->url, true)) {
|
||||
$driver = new $driver($this->url, $this->io);
|
||||
$driver->initialize();
|
||||
return $driver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue