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

Breadcrumb

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

function Tar::getComposerJson

1 call to Tar::getComposerJson()
ArtifactRepository::getComposerInformation in vendor/composer/composer/src/Composer/Repository/ArtifactRepository.php

File

vendor/composer/composer/src/Composer/Util/Tar.php, line 20

Class

Tar
@author Wissem Riahi <wissemr@gmail.com>

Namespace

Composer\Util

Code

public static function getComposerJson(string $pathToArchive) : ?string {
    $phar = new \PharData($pathToArchive);
    if (!$phar->valid()) {
        return null;
    }
    return self::extractComposerJsonFromFolder($phar);
}

API Navigation

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