Skip to content

Commit f45cdd0

Browse files
committed
Used the RunnableInterface provided by the package php-etl/job-contracts
1 parent a3976c4 commit f45cdd0

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/Console.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,15 @@
66

77
use Kiboko\Component\Action\Action;
88
use Kiboko\Component\Pipeline\Pipeline;
9-
use Kiboko\Component\Runtime\Pipeline\Console as PipelineConsoleRuntime;
10-
use Kiboko\Component\Runtime\Action\Console as ActionConsoleRuntime;
119
use Kiboko\Component\State;
1210
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;
1611
use Symfony\Component\Console\Output\ConsoleOutput;
1712

1813
final 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

src/WorkflowRuntimeInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace 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

1010
interface WorkflowRuntimeInterface extends SchedulingInterface, RunnableInterface
1111
{

0 commit comments

Comments
 (0)