[TASK] Deprecate no longer used method getFlashMessageForMissingFile 96/46796/4
authorMichael Oehlhof <typo3@oehlhof.de>
Sun, 21 Feb 2016 13:00:42 +0000 (14:00 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 26 Feb 2016 15:28:55 +0000 (16:28 +0100)
Deprecate no longer used method
BackendUtility::getFlashMessageForMissingFile

Resolves: #73585
Releases: master
Change-Id: I680b5d5b82b1b293d20b0738903ba2e16405c38a
Reviewed-on: https://review.typo3.org/46796
Reviewed-by: Christian Brinkert <christian.brinkert@googlemail.com>
Tested-by: Christian Brinkert <christian.brinkert@googlemail.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/Resource/Utility/BackendUtility.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-73585-DeprecateTYPO3CMSCoreResourceUtilityBackendUtilitygetFlashMessageForMissingFile.rst [new file with mode: 0644]

index c443ffd..59ced10 100644 (file)
@@ -29,9 +29,12 @@ class BackendUtility
      *
      * @param AbstractFile $file
      * @return FlashMessage
+     * @deprecated since TYPO3 v8, will be removed in TYPO3 v9
      */
     public static function getFlashMessageForMissingFile(AbstractFile $file)
     {
+        GeneralUtility::logDeprecatedFunction();
+
         /** @var LanguageService $lang */
         $lang = $GLOBALS['LANG'];
 
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-73585-DeprecateTYPO3CMSCoreResourceUtilityBackendUtilitygetFlashMessageForMissingFile.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-73585-DeprecateTYPO3CMSCoreResourceUtilityBackendUtilitygetFlashMessageForMissingFile.rst
new file mode 100644 (file)
index 0000000..daa42a7
--- /dev/null
@@ -0,0 +1,26 @@
+=============================================================================================================
+Deprecation: #72585 - Deprecate TYPO3\CMS\Core\Resource\Utility\BackendUtility::getFlashMessageForMissingFile
+=============================================================================================================
+
+Description
+===========
+
+``TYPO3\CMS\Core\Resource\Utility\BackendUtility::getFlashMessageForMissingFile`` has been marked as deprecated.
+
+
+Impact
+======
+
+Calling this method will trigger a deprecation log entry.
+
+
+Affected Installations
+======================
+
+Any TYPO3 instance using ``getFlashMessageForMissingFile`` method within an extension or third-party code.
+
+
+Migration
+=========
+
+No migration
\ No newline at end of file