function ProcessOutputCallback::__invoke
File
-
core/
modules/ package_manager/ src/ ProcessOutputCallback.php, line 51
Class
- ProcessOutputCallback
- A process callback for capturing output.
Namespace
Drupal\package_managerCode
public function __invoke(OutputTypeEnum $type, string $buffer) : void {
if ($type === OutputTypeEnum::OUT) {
$this->outBuffer[] = $buffer;
}
elseif ($type === OutputTypeEnum::ERR) {
$this->errorBuffer[] = $buffer;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.