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.
This commit is contained in:
Julien Fastré 2025-04-25 18:24:37 +02:00
parent b6985e0e5f
commit cfcecf1cdc
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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
```