function DiagnoseCommand::checkComposerNetworkHttpEnablement
Check if Composer network is enabled for HTTP/S
Return value
string|true
1 call to DiagnoseCommand::checkComposerNetworkHttpEnablement()
- DiagnoseCommand::checkConnectivityAndComposerNetworkHttpEnablement in vendor/
composer/ composer/ src/ Composer/ Command/ DiagnoseCommand.php
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ DiagnoseCommand.php, line 948
Class
- DiagnoseCommand
- @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CommandCode
private function checkComposerNetworkHttpEnablement() {
if ((bool) Platform::getEnv('COMPOSER_DISABLE_NETWORK')) {
return '<info>SKIP</> <comment>Network is disabled by COMPOSER_DISABLE_NETWORK.</>';
}
return true;
}