[TASK] Mark out-dated workspaces parts as deprecated 09/45409/2
authorOliver Hader <oliver@typo3.org>
Tue, 22 Dec 2015 16:24:00 +0000 (17:24 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 29 Dec 2015 11:14:44 +0000 (12:14 +0100)
Several parts of the workspaces system extension are not used anymore
by the core, but have not been marked as deprecated for TYPO3 CMS 7.

Resolves: #72395
Releases: 7.6
Change-Id: I1aede08cadabe04d50d7e7fa0b36ab00f8c051b4
Reviewed-on: https://review.typo3.org/45409
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/workspaces/Classes/Service/StagesService.php
typo3/sysext/workspaces/Configuration/TCA/sys_workspace_stage.php

index 7b77600..95d9faa 100644 (file)
@@ -767,9 +767,11 @@ class StagesService implements \TYPO3\CMS\Core\SingletonInterface
      * @param int $stageId Stage id to return the notification mode for
      * @return int
      * @throws \InvalidArgumentException
+     * @deprecated since TYPO3 CMS 7, will be removed in TYPO3 CMS 8. No replacement for this method. Notifications have been adjusted with issue #35245
      */
     public function getNotificationMode($stageId)
     {
+        GeneralUtility::logDeprecatedFunction();
         if (!MathUtility::canBeInterpretedAsInteger($stageId)) {
             throw new \InvalidArgumentException($GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xlf:error.stageId.integer'));
         }
index 7ab4b7f..731a7aa 100644 (file)
@@ -64,6 +64,7 @@ return array(
                 'type' => 'passthrough'
             )
         ),
+        // @deprecated not used anymore
         'notification_mode' => array(
             'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace_stage.notification_mode',
             'config' => array(