BC-Changes for Version 11.10.x
This page documents the breaking changes coming with version 11.10.x. These changes should be taken into account to ensure a flawless migration.
Changes to events
Event names and corresponding constants have been renamed and restructured:
| Before | After |
|---|---|
Twocream\DeepLBundle\MessageQueue\Event\ObjectTranslateEvents | Twocream\DeepLBundle\Event\TranslationEvents |
PRE_TRANSLATION = 'twocream.deepl.queue.preTranslation' | PRE_TRANSLATION_OBJECT = 'twocream.deepl.queue.preTranslation.object' |
POST_TRANSLATION = 'twocream.deepl.queue.postTranslation' | POST_TRANSLATION_OBJECT = 'twocream.deepl.queue.postTranslation.object' |
Changes to classes, methods and queue messenger
Some classes, methods and queues have been renamed or functionally adjusted:
| Before | After |
|---|---|
Twocream\DeepLBundle\MessageQueue\EventListener\ObjectTranslationListener | Twocream\DeepLBundle\EventSubscriber\ElementTranslationSubscriber |
getDataObjectConfiguration | getDataObjectConfiguration (note new parameters) |
writeDataObjectConfiguration | writeConfiguration (neue Parameter beachten) |
twocream_deepl_object_translation (Queue) | twocream_deepl_translation |
failed_twocream_deepl_object_translation (Queue) | failed_twocream_deepl_translation |
Twocream\DeepLBundle\MessageQueue\Handler\ObjectTranslateHandler | Twocream\DeepLBundle\MessageQueue\Handler\ElementTranslationHandler |
Notice: The corresponding Cronjob must also be adjusted to the new queue name. See Installation
Rework of translation handling via messenger queue
The delivery of translation information to the messenger queue has been reworked. The message has been cleaned up and the DTO (Data Transfer Object) TranslationContext was introduced. It is used to handle type-specific translation information for the messenger queue. See Translation Queue