Use step run args in existing actions

[MAILPOET-4629]
This commit is contained in:
Jan Jakes
2022-09-19 13:57:15 +02:00
committed by David Remer
parent 68b5bab9cc
commit fe3d719a13
5 changed files with 71 additions and 54 deletions

View File

@ -3,6 +3,7 @@
namespace MailPoet\Test\Automation\Engine\Data;
use MailPoet\Automation\Engine\Control\StepHandler;
use MailPoet\Automation\Engine\Data\StepRunArgs;
use MailPoet\Automation\Engine\Data\Step;
use MailPoet\Automation\Engine\Data\Workflow;
use MailPoet\Automation\Engine\Data\WorkflowRun;
@ -294,9 +295,9 @@ class TestAction implements Action {
return true;
}
public function run(Workflow $workflow, WorkflowRun $workflowRun, Step $step): void {
public function run(StepRunArgs $args): void {
if ($this->callback) {
($this->callback)($workflow, $workflowRun, $step);
($this->callback)($args);
}
}