Symfony\Component\Process\Process::buildCallback
Builds up the callback used by wait().
The callbacks adds all occurred output to the specific buffer and calls the user callback (if present) with the received output.
Signature
protected function buildCallback(callback|null
$callback )
Parameters
$callback
— object- The user defined PHP callback
Returns
- callback
- A PHP callable