[TASK] Add manual for moved signal "postProcessMirrorUrl" 22/39522/8
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 13 May 2015 08:46:37 +0000 (10:46 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 13 May 2015 13:24:45 +0000 (15:24 +0200)
The signal "postProcessMirrorUrl" was moved while refactoring the
"Language" backend module. Add a Breaking ReST manual to
describe the change and the migration path.

Resolves: #66930
Related: #62983
Releases: master
Change-Id: I751a7c8c49500dd482fabe72c3b842118eb1a7a6
Reviewed-on: http://review.typo3.org/39522
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Breaking-62983-PostProcessMirrorUrlSignalHasMoved.rst [new file with mode: 0644]

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-62983-PostProcessMirrorUrlSignalHasMoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-62983-PostProcessMirrorUrlSignalHasMoved.rst
new file mode 100644 (file)
index 0000000..c82ad21
--- /dev/null
@@ -0,0 +1,42 @@
+========================================================
+Breaking: #62983 - postProcessMirrorUrl signal has moved
+========================================================
+
+Description
+===========
+
+While refactoring the Language backend module, the
+``\TYPO3\CMS\Lang\Service\UpdateTranslationService::postProcessMirrorUrl`` signal got lost. Due to
+the refactoring, it has been integrated in another class.
+
+
+Impact
+======
+
+Using the old signal will prevent the slot from being called.
+
+
+Affected Installations
+======================
+
+All extensions are affected that use the old
+``\TYPO3\CMS\Lang\Service\UpdateTranslationService::postProcessMirrorUrl``
+signal.
+
+
+Migration
+=========
+
+Change the slot to use the ``\TYPO3\CMS\Lang\Service\TranslationService::postProcessMirrorUrl``
+signal. If it's required to serve multiple TYPO3 installations, use the following code:
+
+.. code-block:: php
+
+       $signalSlotDispatcher->connect(
+               version_compare(TYPO3_version, '7.0', '<')
+                       ? 'TYPO3\\CMS\\Lang\\Service\\UpdateTranslationService'
+                       : 'TYPO3\\CMS\\Lang\\Service\\TranslationService',
+               'postProcessMirrorUrl',
+               'Vendor\\Extension\\Slots\\CustomMirror',
+               'postProcessMirrorUrl'
+       );
\ No newline at end of file