From 9d4046922e36d958017fd7a11e64d1436bbf1db4 Mon Sep 17 00:00:00 2001 From: sebprt Date: Tue, 16 Jan 2024 16:51:01 +0100 Subject: [PATCH] Improved the dependencies management --- src/Action/Custom/Service.php | 3 +++ src/Plugin/Custom/Service.php | 5 ++++- src/Service.php | 6 ++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Action/Custom/Service.php b/src/Action/Custom/Service.php index 4bd351ca..93c06dfc 100644 --- a/src/Action/Custom/Service.php +++ b/src/Action/Custom/Service.php @@ -13,6 +13,9 @@ #[Configurator\Action( name: 'custom', + dependencies: [ + 'symfony/dependency-injection:^6.0' + ], )] final readonly class Service implements Configurator\ActionInterface { diff --git a/src/Plugin/Custom/Service.php b/src/Plugin/Custom/Service.php index aeac335b..579512dd 100644 --- a/src/Plugin/Custom/Service.php +++ b/src/Plugin/Custom/Service.php @@ -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; diff --git a/src/Service.php b/src/Service.php index 6fbb5210..e49b585c 100644 --- a/src/Service.php +++ b/src/Service.php @@ -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( @@ -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'])