function FileProcessOutputCallback::__invoke

File

core/modules/package_manager/src/FileProcessOutputCallback.php, line 68

Class

FileProcessOutputCallback
Logs process output to a file.

Namespace

Drupal\package_manager

Code

public function __invoke(OutputTypeEnum $type, string $buffer) : void {
    fwrite($this->handle, $buffer);
    if ($this->decorated) {
        ($this->decorated)($type, $buffer);
    }
}

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