Skip to content

Commit

Permalink
Improved the dependencies management
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Jan 16, 2024
1 parent e6e4fa4 commit 9d40469
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
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
6 changes: 2 additions & 4 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo
'php-etl/workflow-console-runtime:*',
'psr/log:*',
'monolog/monolog:*',
'symfony/dotenv:^6.0',
'symfony/dependency-injection:^6.0',
'symfony/dotenv:^6.0'
);

$repository->addFiles(
Expand Down Expand Up @@ -339,8 +338,7 @@ private function compilePipelineJob(array $config): Satellite\Builder\Repository
'php-etl/pipeline-console-runtime:*',
'psr/log:*',
'monolog/monolog:*',
'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 9d40469

Please sign in to comment.