Skip to content

Instantly share code, notes, and snippets.

@rmcdaniel
Created December 10, 2022 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcdaniel/1117fab1b4de91201bcdb4242f4752a1 to your computer and use it in GitHub Desktop.
Save rmcdaniel/1117fab1b4de91201bcdb4242f4752a1 to your computer and use it in GitHub Desktop.
use Workflow\ActivityStub;
use Workflow\Workflow;
use Workflow\WorkflowStub;
class MyWorkflow extends Workflow
{
public function execute($activity)
{
$result = yield ActivityStub::make($activity);
return $result;
}
}
$workflow = WorkflowStub::make(MyWorkflow::class);
$workflow->start(MyActivity::class);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment