1
0
Fork 0
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:
Jordi Boggiano 2012-04-01 18:52:53 +02:00
parent 4bed779601
commit 6d5b4d606c
9 changed files with 50 additions and 14 deletions

View file

@ -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;