[TASK] Deprecate PageRepository->getPathFromRootline 75/49375/2
authorBenni Mack <benni@typo3.org>
Thu, 4 Aug 2016 11:06:08 +0000 (13:06 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 4 Aug 2016 11:23:07 +0000 (13:23 +0200)
The method is unused and does not belong in the PageRepository
if ever needed again.

Resolves: #77405
Releases: master
Change-Id: I6090afac564ac92b14f5277145fff1845417934f
Reviewed-on: https://review.typo3.org/49375
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-77405-PageRepository-getPathFromRootline.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Page/PageRepository.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-77405-PageRepository-getPathFromRootline.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-77405-PageRepository-getPathFromRootline.rst
new file mode 100644 (file)
index 0000000..ebc7d41
--- /dev/null
@@ -0,0 +1,20 @@
+=========================================================
+Deprecation: #77405 - PageRepository->getPathFromRootline
+=========================================================
+
+Description
+===========
+
+The PHP method ``PageRepository->getPathFromRootline`` has been marked as deprecated.
+
+
+Impact
+======
+
+Calling the method will trigger a deprecation log entry.
+
+
+Affected Installations
+======================
+
+Any TYPO3 installation with a third-party extension using this method.
\ No newline at end of file
index c949f11..ec02d41 100644 (file)
@@ -836,9 +836,11 @@ class PageRepository
      * @param int $len The max length of each title from the rootline.
      * @return string The path in the form "/page title/This is another pageti.../Another page
      * @see \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getConfigArray()
+     * @deprecated since TYPO3 v8, will be removed in TYPO3 v9
      */
     public function getPathFromRootline($rl, $len = 20)
     {
+        GeneralUtility::logDeprecatedFunction();
         $path = '';
         if (is_array($rl)) {
             $c = count($rl);