Avoid warning when testing for packagist over http

main
Jordi Boggiano 8 years ago
parent c16ca1ccbe
commit cfdeb61779

@ -24,6 +24,7 @@ use Composer\Util\RemoteFilesystem;
use Composer\Util\StreamContextFactory; use Composer\Util\StreamContextFactory;
use Composer\SelfUpdate\Keys; use Composer\SelfUpdate\Keys;
use Composer\SelfUpdate\Versions; use Composer\SelfUpdate\Versions;
use Composer\IO\NullIO;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
@ -77,6 +78,7 @@ EOT
} }
$config->merge(array('config' => array('secure-http' => false))); $config->merge(array('config' => array('secure-http' => false)));
$config->prohibitUrlByConfig('http://packagist.org', new NullIO);
$this->rfs = Factory::createRemoteFilesystem($io, $config); $this->rfs = Factory::createRemoteFilesystem($io, $config);
$this->process = new ProcessExecutor($io); $this->process = new ProcessExecutor($io);

Loading…
Cancel
Save