Created
December 10, 2022 04:49
-
-
Save rmcdaniel/1117fab1b4de91201bcdb4242f4752a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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