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 6
6
7
7
use Kiboko \Component \Action \Action ;
8
8
use Kiboko \Component \Pipeline \Pipeline ;
9
- use Kiboko \Component \Runtime \Pipeline \Console as PipelineConsoleRuntime ;
10
- use Kiboko \Component \Runtime \Action \Console as ActionConsoleRuntime ;
11
9
use Kiboko \Component \State ;
12
10
use 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 ;
16
11
use Symfony \Component \Console \Output \ConsoleOutput ;
17
12
18
13
final class Console implements WorkflowRuntimeInterface
19
14
{
20
15
private readonly State \StateOutput \Workflow $ state ;
21
16
22
- /** @var list<PipelineRunnableInterface|ActionRunnableInterface > */
17
+ /** @var list<JobRunnableInterface > */
23
18
private array $ jobs = [];
24
19
25
20
public function __construct (
@@ -47,7 +42,7 @@ public function loadAction(string $filename): ActionConsoleRuntime
47
42
return $ factory (new ActionConsoleRuntime ($ this ->output , $ action , $ this ->state ->withAction (basename ($ filename ))));
48
43
}
49
44
50
- public function job (PipelineRunnableInterface | ActionRunnableInterface $ job ): self
45
+ public function job (JobRunnableInterface $ job ): self
51
46
{
52
47
$ this ->jobs [] = $ job ;
53
48
Original file line number Diff line number Diff line change 4
4
5
5
namespace Kiboko \Component \Runtime \Workflow ;
6
6
7
- use Kiboko \Contract \Pipeline \RunnableInterface ;
8
- use Kiboko \Contract \Pipeline \SchedulingInterface ;
7
+ use Kiboko \Contract \Job \RunnableInterface ;
8
+ use Kiboko \Contract \Job \SchedulingInterface ;
9
9
10
10
interface WorkflowRuntimeInterface extends SchedulingInterface, RunnableInterface
11
11
{
You can’t perform that action at this time.
0 commit comments