generated from Nodarx/template
feat: append command
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -42,9 +42,14 @@ final class CommandExecutor
|
||||
$frame = $command->encode($tag, $context);
|
||||
$this->writer->write($tag, $frame);
|
||||
|
||||
return $command->handle(new ResponseStream(function () use ($tag, $context): Generator {
|
||||
yield from $this->processPerform($tag, $context);
|
||||
}), $context);
|
||||
return $command->handle(new ResponseStream(
|
||||
function () use ($tag, $context): Generator {
|
||||
yield from $this->processPerform($tag, $context);
|
||||
},
|
||||
function (string $payload): void {
|
||||
$this->writer->writeRaw($payload);
|
||||
},
|
||||
), $context);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user