Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DiagnoseCommand.php

function DiagnoseCommand::checkConnectivity

Check if allow_url_fopen is ON

Return value

string|true

1 call to DiagnoseCommand::checkConnectivity()
DiagnoseCommand::checkConnectivityAndComposerNetworkHttpEnablement in vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php

File

vendor/composer/composer/src/Composer/Command/DiagnoseCommand.php, line 916

Class

DiagnoseCommand
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Command

Code

private function checkConnectivity() {
    if (!ini_get('allow_url_fopen')) {
        return '<info>SKIP</> <comment>Because allow_url_fopen is missing.</>';
    }
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal