function ComposerInspector::validate

Checks that Composer commands can be run.

Parameters

string $working_dir: The directory in which Composer will be run.

See also

::validateExecutable()

::validateProject()

2 calls to ComposerInspector::validate()
ComposerInspector::getInstalledPackagesList in core/modules/package_manager/src/ComposerInspector.php
Returns the installed packages list.
ComposerInspector::getRootPackageInfo in core/modules/package_manager/src/ComposerInspector.php
Returns the output of `composer show --self` in a directory.

File

core/modules/package_manager/src/ComposerInspector.php, line 85

Class

ComposerInspector
Defines a class to get information from Composer.

Namespace

Drupal\package_manager

Code

public function validate(string $working_dir) : void {
    $this->validateExecutable();
    $this->validateProject($working_dir);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.