File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1010use Kiboko \Component \Runtime \Action \Console as ActionConsoleRuntime ;
1111use Kiboko \Component \State ;
1212use Kiboko \Contract \Pipeline \PipelineRunnerInterface ;
13- use Kiboko \Contract \Pipeline \RunnableInterface ;
13+ use Kiboko \Contract \Pipeline \RunnableInterface as PipelineRunnableInterface ;
14+ use Kiboko \Contract \Action \RunnableInterface as ActionRunnableInterface ;
15+ use Symfony \Component \Console \Logger \ConsoleLogger ;
1416use Symfony \Component \Console \Output \ConsoleOutput ;
1517
1618final class Console implements WorkflowRuntimeInterface
1719{
1820 private readonly State \StateOutput \Workflow $ state ;
1921
20- /** @var list<RunnableInterface > */
22+ /** @var list<PipelineRunnableInterface|ActionRunnableInterface > */
2123 private array $ jobs = [];
2224
2325 public function __construct (
@@ -40,12 +42,12 @@ public function loadAction(string $filename): ActionConsoleRuntime
4042 {
4143 $ factory = require $ filename ;
4244
43- $ action = new Action ($ this -> pipelineRunner );
45+ $ action = new Action ();
4446
4547 return $ factory (new ActionConsoleRuntime ($ this ->output , $ action , $ this ->state ->withAction (basename ($ filename ))));
4648 }
4749
48- public function job (RunnableInterface $ job ): self
50+ public function job (PipelineRunnableInterface | ActionRunnableInterface $ job ): self
4951 {
5052 $ this ->jobs [] = $ job ;
5153
You can’t perform that action at this time.
0 commit comments