1 | <?php |
||
25 | class Executor |
||
26 | { |
||
27 | /** |
||
28 | * Action registry |
||
29 | * |
||
30 | * @var Registry |
||
31 | */ |
||
32 | private $registry; |
||
33 | |||
34 | /** |
||
35 | * Container DI |
||
36 | * |
||
37 | * @var ContainerInterface |
||
38 | */ |
||
39 | private $container; |
||
40 | |||
41 | /** |
||
42 | * Executor constructor. |
||
43 | * |
||
44 | * @param Registry $registry action registry |
||
45 | * @param ContainerInterface $container container DI |
||
46 | */ |
||
47 | public function __construct(Registry $registry, ContainerInterface $container) |
||
52 | |||
53 | /** |
||
54 | * Executes action |
||
55 | * |
||
56 | * @param WorkflowContext $workflowContext workflow context |
||
57 | * @param string $actionName action name |
||
58 | * @param array $args action arguments |
||
59 | * |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function execute(WorkflowContext $workflowContext, $actionName, array $args = []) |
||
77 | } |