mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Add warnings when running updates without curl enabled, fixes #9558
This commit is contained in:
parent
57117384df
commit
4a740e3e61
3 changed files with 12 additions and 2 deletions
|
@ -19,6 +19,7 @@ use Composer\IO\IOInterface;
|
|||
use Composer\Plugin\CommandEvent;
|
||||
use Composer\Plugin\PluginEvents;
|
||||
use Composer\Package\Version\VersionParser;
|
||||
use Composer\Util\HttpDownloader;
|
||||
use Composer\Semver\Constraint\MultiConstraint;
|
||||
use Composer\Package\Link;
|
||||
use Symfony\Component\Console\Helper\Table;
|
||||
|
@ -114,6 +115,10 @@ EOT
|
|||
|
||||
$composer = $this->getComposer(true, $input->getOption('no-plugins'));
|
||||
|
||||
if (!HttpDownloader::isCurlEnabled()) {
|
||||
$io->writeError('<warning>Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.</warning>');
|
||||
}
|
||||
|
||||
$packages = $input->getArgument('packages');
|
||||
$reqs = $this->formatRequirements($input->getOption('with'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue