[!!!][FEATURE] Refactoring of FlashMessage rendering 85/50285/22
authorSusanne Moog <susanne.moog@typo3.com>
Mon, 9 Jan 2017 22:04:19 +0000 (23:04 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 11 Jan 2017 22:14:21 +0000 (23:14 +0100)
commitd881b03b7a61d3ce6376fa5d9b03e57e5763a50e
treec0985e04c7957131c98c727c303a4e39aaf0546c
parentdd96ce85d2ea8669723cb411af2da32cad5b5e26
[!!!][FEATURE] Refactoring of FlashMessage rendering

This patch reverts some changes of #73698 and adds some new things:

- Introduce context based FlashMessageRenderer
- Add special FlashMessageViewHelper for the backend
- Cleanup classes related to FlashMessages
- Deprecate some methods from the FlashMessages::class

Resolves: #78477
Related: #73698
Releases: master
Change-Id: I937d5896b0a3d45e59c9174d233410f202add997
Reviewed-on: https://review.typo3.org/50285
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
21 files changed:
typo3/sysext/core/Classes/Database/QueryView.php
typo3/sysext/core/Classes/Messaging/AbstractMessage.php
typo3/sysext/core/Classes/Messaging/FlashMessage.php
typo3/sysext/core/Classes/Messaging/FlashMessageQueue.php
typo3/sysext/core/Classes/Messaging/FlashMessageRendererResolver.php [new file with mode: 0644]
typo3/sysext/core/Classes/Messaging/FlashMessageService.php
typo3/sysext/core/Classes/Messaging/Renderer/BootstrapRenderer.php [new file with mode: 0644]
typo3/sysext/core/Classes/Messaging/Renderer/FlashMessageRendererInterface.php [new file with mode: 0644]
typo3/sysext/core/Classes/Messaging/Renderer/ListRenderer.php [new file with mode: 0644]
typo3/sysext/core/Classes/Messaging/Renderer/PlaintextRenderer.php [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Breaking-78477-RefactoringOfFlashMessageRendering.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Breaking-78477-RefactoringOfFlashMessageRenderingViewHelper.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Deprecation-78477-RefactoringOfFlashMessageRendering.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-78477-RefactoringOfFlashMessageRendering.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Messaging/FlashMessageQueueTest.php
typo3/sysext/core/Tests/Unit/Messaging/FlashMessageRendererResolverTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Messaging/Renderer/BootstrapRendererTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Messaging/Renderer/ListRendererTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Messaging/Renderer/PlaintextRendererTest.php [new file with mode: 0644]
typo3/sysext/fluid/Classes/ViewHelpers/FlashMessagesViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FlashMessagesViewHelperTest.php