[TASK] Mark Extbase\Mvc\Controller\FlashMessageContainer deprecated 66/21166/3
authorAlexander Schnitzler <alex.schnitzler@typovision.de>
Thu, 30 May 2013 10:08:41 +0000 (12:08 +0200)
committerAlexander Schnitzler <typo3@alexanderschnitzler.de>
Tue, 4 Jun 2013 19:35:07 +0000 (21:35 +0200)
As Extbase uses the new FlashMessageService provided by the core the
old FlashMessageContainer has to be marked deprecated. Therefore also
TYPO3\CMS\Extbase\Mvc\Controller\AbstractController->injectFlash
MessageContainer has to be marked deprecated but must not throw
create a deprecation log entry.

Releases: 6.2
Resolves: #48669
Change-Id: I2583f6a72aae6ee8abc50ebd053ffc23bc74d30b
Reviewed-on: https://review.typo3.org/21166
Reviewed-by: Wouter Wolters
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php
typo3/sysext/extbase/Classes/Mvc/Controller/FlashMessageContainer.php

index 060f405..87f75ab 100644 (file)
@@ -197,10 +197,13 @@ abstract class AbstractController implements \TYPO3\CMS\Extbase\Mvc\Controller\C
        }
 
        /**
-        * Injects the flash messages container
+        * This method is deprecated! For further information have a look at
+        * the PhpDoc of class \TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer
         *
         * @param \TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer $flashMessageContainer
         * @return void
+        *
+        * @deprecated since Extbase 6.1, will be removed 2 versions later
         */
        public function injectFlashMessageContainer(\TYPO3\CMS\Extbase\Mvc\Controller\FlashMessageContainer $flashMessageContainer) {
                $this->flashMessageContainer = $flashMessageContainer;
index 39acc8e..e77330b 100644 (file)
@@ -33,6 +33,16 @@ namespace TYPO3\CMS\Extbase\Mvc\Controller;
  *
  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
  * @api
+ *
+ * This object is deprecated as Extbase uses the FlashMessageService provided
+ * by the core from 6.1 on. Therefore please do not use this object but call
+ * (Abstract)Controller->controllerContext->getFlashMessageQueue() instead.
+ *
+ * For sure you are free to use TYPO3\CMS\Core\Messaging\FlashMessageService
+ * and fetch a custom FlashMessageQueue by calling
+ * FlashMessageQueue->getMessageQueueByIdentifier('customIdentifier')
+ *
+ * @deprecated since Extbase 6.1, will be removed 2 versions later
  */
 class FlashMessageContainer implements \TYPO3\CMS\Core\SingletonInterface {