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()

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.