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

Breadcrumb

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

function Versions::getVersionsData

Return value

array<string, array<int, array{path: string, version: string, min-php: int, eol?: true}>>

1 call to Versions::getVersionsData()
Versions::getLatest in vendor/composer/composer/src/Composer/SelfUpdate/Versions.php

File

vendor/composer/composer/src/Composer/SelfUpdate/Versions.php, line 103

Class

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

Namespace

Composer\SelfUpdate

Code

private function getVersionsData() : array {
    if (null === $this->versionsData) {
        if ($this->config
            ->get('disable-tls') === true) {
            $protocol = 'http';
        }
        else {
            $protocol = 'https';
        }
        $this->versionsData = $this->httpDownloader
            ->get($protocol . '://getcomposer.org/versions')
            ->decodeJson();
    }
    return $this->versionsData;
}
RSS feed
Powered by Drupal