[TASK] Add manual for moved signal "postProcessMirrorUrl"
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Breaking-62983-PostProcessMirrorUrlSignalHasMoved.rst
1 ========================================================
2 Breaking: #62983 - postProcessMirrorUrl signal has moved
3 ========================================================
4
5 Description
6 ===========
7
8 While refactoring the Language backend module, the
9 ``\TYPO3\CMS\Lang\Service\UpdateTranslationService::postProcessMirrorUrl`` signal got lost. Due to
10 the refactoring, it has been integrated in another class.
11
12
13 Impact
14 ======
15
16 Using the old signal will prevent the slot from being called.
17
18
19 Affected Installations
20 ======================
21
22 All extensions are affected that use the old
23 ``\TYPO3\CMS\Lang\Service\UpdateTranslationService::postProcessMirrorUrl``
24 signal.
25
26
27 Migration
28 =========
29
30 Change the slot to use the ``\TYPO3\CMS\Lang\Service\TranslationService::postProcessMirrorUrl``
31 signal. If it's required to serve multiple TYPO3 installations, use the following code:
32
33 .. code-block:: php
34
35         $signalSlotDispatcher->connect(
36                 version_compare(TYPO3_version, '7.0', '<')
37                         ? 'TYPO3\\CMS\\Lang\\Service\\UpdateTranslationService'
38                         : 'TYPO3\\CMS\\Lang\\Service\\TranslationService',
39                 'postProcessMirrorUrl',
40                 'Vendor\\Extension\\Slots\\CustomMirror',
41                 'postProcessMirrorUrl'
42         );