[TASK] Use RootlineUtility directly 90/57590/8
authorBenni Mack <benni@typo3.org>
Fri, 13 Jul 2018 18:53:44 +0000 (20:53 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 24 Jul 2018 05:42:35 +0000 (07:42 +0200)
commit6e2eb2933bae36dbf76360ca46aa93263f226c54
treea4578e51c638412d943bd411b176100cf5514356
parentfcf132f5700466f6d1df4f6b3491f8574740b1c3
[TASK] Use RootlineUtility directly

Instead of calling PageRepository to fetch the rootline, RootlineUtility
can do that now directly.

However, all exceptions are more specific and caught specifically, for
each use-case.

Additionally, PageRepository->getRootline() is deprecated now. For this
reason, the deprecation for the argument $ignoreMPerrors is removed
again, as it does not make sense anymore.

Resolves: #85557
Releases: master
Change-Id: I5a9192311c5616f5a58e89a39c3869b593e97968
Reviewed-on: https://review.typo3.org/57590
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
22 files changed:
typo3/sysext/backend/Classes/Controller/Page/TreeController.php
typo3/sysext/core/Classes/Exception/Page/BrokenRootLineException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Exception/Page/CircularRootLineException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Exception/Page/MountPointException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Exception/Page/MountPointsDisabledException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Exception/Page/PageNotFoundException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Exception/Page/PagePropertyRelationNotFoundException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Exception/Page/RootLineException.php [new file with mode: 0644]
typo3/sysext/core/Classes/Utility/RootlineUtility.php
typo3/sysext/core/Documentation/Changelog/9.3/Deprecation-85105-3rdMethodArgumentInPageRepository-getRootLine.rst [deleted file]
typo3/sysext/core/Documentation/Changelog/master/Deprecation-85557-PageRepository-getRootLine.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
typo3/sysext/frontend/Tests/Functional/ContentObject/ContentObjectRendererTest.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodArgumentDroppedMatcher.php
typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/Modify/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php