mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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:
parent
b6985e0e5f
commit
cfcecf1cdc
@ -8,7 +8,7 @@ changelog: |
|
|||||||
- Refactor manually the initializeQuery method
|
- Refactor manually the initializeQuery method
|
||||||
- Remove the injection of ExportManager into the constructor of each export element:
|
- Remove the injection of ExportManager into the constructor of each export element:
|
||||||
|
|
||||||
````diff
|
```diff
|
||||||
|
|
||||||
- class MyFormatter implements FormatterInterface
|
- class MyFormatter implements FormatterInterface
|
||||||
+ class MyFormatter implements FormatterInterface, \Chill\MainBundle\Export\ExportManagerAwareInterface
|
+ 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user