function ProcessOutputCallback::__invoke
Same name and namespace in other branches
- 11.x core/modules/package_manager/src/ProcessOutputCallback.php \Drupal\package_manager\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.