Add step run controller to allow actions control their flow
[MAILPOET-5569]
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php declare(strict_types = 1);
|
||||
|
||||
namespace MailPoet\Automation\Engine\Control;
|
||||
|
||||
use MailPoet\Automation\Engine\Data\StepRunArgs;
|
||||
|
||||
class StepRunControllerFactory {
|
||||
/** @var StepScheduler */
|
||||
private $stepScheduler;
|
||||
|
||||
public function __construct(
|
||||
StepScheduler $stepScheduler
|
||||
) {
|
||||
$this->stepScheduler = $stepScheduler;
|
||||
}
|
||||
|
||||
public function createController(StepRunArgs $args): StepRunController {
|
||||
return new StepRunController($this->stepScheduler, $args);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user