Skip to content

Commit

Permalink
Merge branch 'main' into fix/rabbit-mq-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat authored Jan 17, 2024
2 parents a92594b + 249b1a3 commit 09c6110
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions bin/satellite
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $app->addCommands([
new \Kiboko\Component\Satellite\Console\Command\ValidateCommand(),
new \Kiboko\Component\Satellite\Console\Command\PipelineRunCommand(),
new \Kiboko\Component\Satellite\Console\Command\WorkflowRunCommand(),
new \Kiboko\Component\Satellite\Console\Command\RunCommand(),
]);

$app->run(new Input\ArgvInput(), new Output\ConsoleOutput());
3 changes: 3 additions & 0 deletions src/Action/Custom/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

#[Configurator\Action(
name: 'custom',
dependencies: [
'symfony/dependency-injection:^6.0',
],
)]
final readonly class Service implements Configurator\ActionInterface
{
Expand Down
5 changes: 4 additions & 1 deletion src/Plugin/Custom/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@

#[Configurator\Pipeline(
name: 'custom',
dependencies: [
'symfony/dependency-injection:^6.0',
],
steps: [
new Configurator\Pipeline\StepExtractor(),
new Configurator\Pipeline\StepTransformer(),
new Configurator\Pipeline\StepLoader(),
],
]
)] final readonly class Service implements Configurator\PipelinePluginInterface
{
private Processor $processor;
Expand Down
11 changes: 6 additions & 5 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo
'php-etl/pipeline-contracts:>=0.5.1 <0.6',
'php-etl/action-contracts:>=0.2.0 <0.3',
'php-etl/workflow:*',
'php-etl/workflow-console-runtime:*',
'psr/log:*',
'monolog/monolog:*',
'symfony/dotenv:^6.0'
);

$repository->addFiles(
Expand Down Expand Up @@ -328,16 +332,13 @@ private function compilePipelineJob(array $config): Satellite\Builder\Repository
$repository = new Satellite\Builder\Repository\Pipeline($pipeline);

$repository->addPackages(
'php-etl/satellite-contracts:>=0.1.1 <0.2',
'php-etl/pipeline-contracts:>=0.5.1 <0.6',
'php-etl/pipeline:*',
'php-etl/console-state:*',
'php-etl/pipeline-console-runtime:*',
'php-etl/workflow-console-runtime:*',
'psr/log:*',
'monolog/monolog:*',
'symfony/console:^6.0',
'symfony/dotenv:^6.0',
'symfony/dependency-injection:^6.0',
'symfony/dotenv:^6.0'
);

if (\array_key_exists('expression_language', $config['pipeline'])
Expand Down

0 comments on commit 09c6110

Please sign in to comment.