public function doCallback() { $output = null; $process = new Process($this->getCommandString()); $process->setTimeout($this->sh->getTimeout()); $process->run(function ($type, $buffer) { call_user_func_array($this->lineCallback, array($buffer, $type)); }); return; }