File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 66
77use Kiboko \Component \Action \Action ;
88use Kiboko \Component \Pipeline \Pipeline ;
9- use Kiboko \Component \Runtime \Pipeline \Console as PipelineConsoleRuntime ;
10- use Kiboko \Component \Runtime \Action \Console as ActionConsoleRuntime ;
119use Kiboko \Component \State ;
1210use Kiboko \Contract \Pipeline \PipelineRunnerInterface ;
13- use Kiboko \Contract \Pipeline \RunnableInterface as PipelineRunnableInterface ;
14- use Kiboko \Contract \Action \RunnableInterface as ActionRunnableInterface ;
15- use Symfony \Component \Console \Logger \ConsoleLogger ;
1611use Symfony \Component \Console \Output \ConsoleOutput ;
1712
1813final class Console implements WorkflowRuntimeInterface
1914{
2015 private readonly State \StateOutput \Workflow $ state ;
2116
22- /** @var list<PipelineRunnableInterface|ActionRunnableInterface > */
17+ /** @var list<JobRunnableInterface > */
2318 private array $ jobs = [];
2419
2520 public function __construct (
@@ -47,7 +42,7 @@ public function loadAction(string $filename): ActionConsoleRuntime
4742 return $ factory (new ActionConsoleRuntime ($ this ->output , $ action , $ this ->state ->withAction (basename ($ filename ))));
4843 }
4944
50- public function job (PipelineRunnableInterface | ActionRunnableInterface $ job ): self
45+ public function job (JobRunnableInterface $ job ): self
5146 {
5247 $ this ->jobs [] = $ job ;
5348
Original file line number Diff line number Diff line change 44
55namespace Kiboko \Component \Runtime \Workflow ;
66
7- use Kiboko \Contract \Pipeline \RunnableInterface ;
8- use Kiboko \Contract \Pipeline \SchedulingInterface ;
7+ use Kiboko \Contract \Job \RunnableInterface ;
8+ use Kiboko \Contract \Job \SchedulingInterface ;
99
1010interface WorkflowRuntimeInterface extends SchedulingInterface, RunnableInterface
1111{
You can’t perform that action at this time.
0 commit comments