From cfcecf1cdc21f0c16cd849af0c2b10ab1f7efc6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 25 Apr 2025 18:24:37 +0200 Subject: [PATCH] Refactor export management and configure messenger queue Refactored the export initialization process by implementing the `ExportManagerAwareInterface` for better consistency. Added configuration to enable handling export requests via the messenger queue for improved task prioritization and execution efficiency. --- .changes/unreleased/DX-20250407-121010.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.changes/unreleased/DX-20250407-121010.yaml b/.changes/unreleased/DX-20250407-121010.yaml index 873e44880..2347b046d 100644 --- a/.changes/unreleased/DX-20250407-121010.yaml +++ b/.changes/unreleased/DX-20250407-121010.yaml @@ -8,7 +8,7 @@ changelog: | - Refactor manually the initializeQuery method - Remove the injection of ExportManager into the constructor of each export element: - ````diff + ```diff - class MyFormatter implements FormatterInterface + class MyFormatter implements FormatterInterface, \Chill\MainBundle\Export\ExportManagerAwareInterface @@ -24,6 +24,17 @@ changelog: | } } ``` + - configure messenger to handle export in a queue: + + ```diff + # config/packages/messenger.yaml + framework: + messenger: + routing: + + 'Chill\MainBundle\Export\Messenger\ExportRequestGenerationMessage': priority + ``` + +