Skip to content

v2.7.5

Compare
Choose a tag to compare
@roxblnfk roxblnfk released this 06 Feb 15:05
· 386 commits to master since this release
v2.7.5
e726dda

What's Changed

// Workflow context

public function handle(string $userId, string $email) {
    // ...

    $activityStub = Workflow::newActivityStub(SubscriptionActivity::class, ActivityOptions::new()->withStartToCloseTimeout(10));

    // Called method signature:
    // public function subscribe(string $email, string $userId, string $prefix = 'Dear', array $channels = ['main']): void

    yield $activityStub->subscribe(user: $userId, email: $email, channels: ['news']);
    // Arguments in correct order will be sent: $email, $userId, 'Dear', ['news'] 

    // ...
}

Full Changelog: v2.7.4...v2.7.5