From 3c008bf4cfa855747c81439b2817e0e8a6d7de3c Mon Sep 17 00:00:00 2001 From: SimonRethore Date: Fri, 26 Jul 2024 16:35:34 +0200 Subject: [PATCH 1/3] Update strategy --- Resources/config/services.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Resources/config/services.php b/Resources/config/services.php index 1727215..38bfe93 100644 --- a/Resources/config/services.php +++ b/Resources/config/services.php @@ -42,6 +42,10 @@ ->tag('import.strategy') ->args([service('database_connection')]); + $services->set('faros_import.strategy.update', \LePhare\Import\Strategy\UpdateStrategy::class) + ->tag('import.strategy') + ->args([service('database_connection')]); + $services->set('lephare_import.email_report_subscriber', \LePhare\ImportBundle\EventSubscriber\EmailReportSubscriber::class) ->tag('kernel.event_subscriber') ->args([service(\Symfony\Component\Mailer\MailerInterface::class), '%lephare_import.email_report.recipients%']); From 86d4507c574c7cc5e19c6895bdfae2f8cfeeca96 Mon Sep 17 00:00:00 2001 From: SimonRethore Date: Fri, 26 Jul 2024 16:40:11 +0200 Subject: [PATCH 2/3] Add dev-update-strategy on import for testing --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 744749d..d053d64 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^7.4|^8.0", - "lephare/import": "^2.0", + "lephare/import": "dev-update-strategy", "monolog/monolog": "^2.0|^3.0", "symfony/framework-bundle": "^5.4|^6.0|^7.0", "symfony/lock": "^5.4|^6.0|^7.0", From c62b16fa65e7e580caedbab3d130d3586e22d0b2 Mon Sep 17 00:00:00 2001 From: SimonRethore Date: Tue, 30 Jul 2024 12:00:46 +0200 Subject: [PATCH 3/3] Remove dev-update-strategy on import after testing --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d053d64..744749d 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^7.4|^8.0", - "lephare/import": "dev-update-strategy", + "lephare/import": "^2.0", "monolog/monolog": "^2.0|^3.0", "symfony/framework-bundle": "^5.4|^6.0|^7.0", "symfony/lock": "^5.4|^6.0|^7.0",