function ComposerNotReadyException::__construct
Constructs a ComposerNotReadyException object.
Parameters
string|null $workingDir: The directory where Composer was run, or NULL if the errors are related to the Composer executable itself.
array $messages: An array of messages explaining why Composer cannot be run correctly.
int $code: (optional) The exception code. Defaults to 0.
\Throwable|null $previous: (optional) The previous exception, for exception chaining.
File
-
core/
modules/ package_manager/ src/ Exception/ ComposerNotReadyException.php, line 29
Class
- ComposerNotReadyException
- Exception thrown if we cannot reliably use Composer.
Namespace
Drupal\package_manager\ExceptionCode
public function __construct(?string $workingDir, array $messages, int $code = 0, ?\Throwable $previous = NULL) {
parent::__construct(implode("\n", $messages), $code, $previous);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.