File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace Kiboko \Component \Runtime \Workflow ;
66
7+ use Kiboko \Component \Action \Action ;
78use Kiboko \Component \Pipeline \Pipeline ;
89use Kiboko \Component \Runtime \Pipeline \Console as PipelineConsoleRuntime ;
10+ use Kiboko \Component \Runtime \Action \Console as ActionConsoleRuntime ;
911use Kiboko \Component \State ;
1012use Kiboko \Contract \Pipeline \PipelineRunnerInterface ;
1113use Kiboko \Contract \Pipeline \RunnableInterface ;
@@ -34,13 +36,13 @@ public function loadPipeline(string $filename): PipelineConsoleRuntime
3436 return $ factory (new PipelineConsoleRuntime ($ this ->output , $ pipeline , $ this ->state ->withPipeline (basename ($ filename ))));
3537 }
3638
37- public function loadAction (string $ filename ): PipelineConsoleRuntime
39+ public function loadAction (string $ filename ): ActionConsoleRuntime
3840 {
3941 $ factory = require $ filename ;
4042
41- $ pipeline = new Pipeline ($ this ->pipelineRunner );
43+ $ action = new Action ($ this ->pipelineRunner );
4244
43- return $ factory (new PipelineConsoleRuntime ($ this ->output , $ pipeline , $ this ->state ->withPipeline (basename ($ filename ))));
45+ return $ factory (new ActionConsoleRuntime ($ this ->output , $ action , $ this ->state ->withAction (basename ($ filename ))));
4446 }
4547
4648 public function job (RunnableInterface $ job ): self
You can’t perform that action at this time.
0 commit comments