Created
December 6, 2022 02:33
-
-
Save rmcdaniel/275ebb80de41b04fbe9a39bd8bc1e4dc 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
<?php | |
namespace App\Workflows\BuildPDF; | |
use Workflow\ActivityStub; | |
use Workflow\Workflow; | |
class BuildPDFWorkflow extends Workflow | |
{ | |
public function execute() | |
{ | |
$page1 = ActivityStub::make(ConvertURLActivity::class, 'https://example.com/'); | |
$page2 = ActivityStub::make(ConvertURLActivity::class, 'https://example.com/'); | |
$pages = yield ActivityStub::all([$page1, $page2]); | |
$result = yield ActivityStub::make(MergePDFActivity::class, $pages); | |
return $result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment