[TYPO3-mvc] How to replace deprecated method FlashMessageContainer->add()
Dirk Wenzel
wenzel at webfox03.de
Sun Jan 19 13:25:22 CET 2014
The method FlashMessageContainer->add() is deprecated since TYPO3
version 6.1.
Would you use
$this->controllerContext->getFlashMessageQueue()->addMessage(new
\TYPO3\CMS\Core\Messaging\FlashMessage('<message text>', '<message
header', \TYPO3\CMS\Core\Messaging\FlashMessage::<message type constant>));
instead?
A comment in the FlashMessageQueue class states that the method
addMessage() is not yet visible and will be made public in version 6.3.
Cheers
Dirk
More information about the TYPO3-project-typo3v4mvc
mailing list