[TASK] Move PageRepository to EXT:core
Since Context API was introduced in TYPO3 v9, PageRepository is highly decoupled from $TSFE->sys_page, and fully works standalone. It is also used in various places where TSFE is not needed, or required, but also in places of EXT:core. Especially parts like RootlineUtility, which depends on PageRepository very much, cannot live without it. I propose to move this highly important PHP class into EXT:core, in order to allow to decouple EXT:frontend even further from EXT:core. The FQCN is moved from - \TYPO3\CMS\Frontend\Page\PageRepository to - TYPO3\CMS\Core\Domain\Repository\PageRepository It can be assumed to use PageRepository for any use-case and actually reduce usages towards BackendUtility::get... by using this API more and more. Further adaptions could be to reduce the logic within PageRepository and move this into QueryBuilder and assimilate especially the "versionOL" behavior. Resolves: #88746 Releases: master Change-Id: Id8225100ac60bd77fc7e1303efb4c46b741d3415 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61166 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Benjamin Franzke <bfr@qbus.de>
Showing
- composer.json 3 additions, 0 deletionscomposer.json
- composer.lock 1 addition, 1 deletioncomposer.lock
- typo3/sysext/backend/Classes/Controller/EditDocumentController.php 1 addition, 1 deletion...ext/backend/Classes/Controller/EditDocumentController.php
- typo3/sysext/backend/Classes/Controller/NewRecordController.php 1 addition, 1 deletion...sysext/backend/Classes/Controller/NewRecordController.php
- typo3/sysext/backend/Classes/Controller/PageLayoutController.php 1 addition, 1 deletion...ysext/backend/Classes/Controller/PageLayoutController.php
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 1 addition, 1 deletion...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/backend/Classes/Tree/View/ElementBrowserPageTreeView.php 1 addition, 1 deletion.../backend/Classes/Tree/View/ElementBrowserPageTreeView.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Classes/View/PageLayoutView.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/View/PageLayoutView.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepository.php 1 addition, 1 deletion.../sysext/core/Classes/Domain/Repository/PageRepository.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepositoryGetPageHookInterface.php 2 additions, 2 deletions.../Domain/Repository/PageRepositoryGetPageHookInterface.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepositoryGetPageOverlayHookInterface.php 3 additions, 3 deletions.../Repository/PageRepositoryGetPageOverlayHookInterface.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepositoryGetRecordOverlayHookInterface.php 4 additions, 4 deletions...epository/PageRepositoryGetRecordOverlayHookInterface.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepositoryInitHookInterface.php 2 additions, 2 deletions...ses/Domain/Repository/PageRepositoryInitHookInterface.php
- typo3/sysext/core/Classes/Routing/Aspect/PersistedAliasMapper.php 1 addition, 1 deletion...sext/core/Classes/Routing/Aspect/PersistedAliasMapper.php
- typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php 1 addition, 1 deletion...xt/core/Classes/Routing/Aspect/PersistedPatternMapper.php
- typo3/sysext/core/Classes/Routing/PageRouter.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Routing/PageRouter.php
- typo3/sysext/core/Classes/TypoScript/TemplateService.php 1 addition, 1 deletiontypo3/sysext/core/Classes/TypoScript/TemplateService.php
- typo3/sysext/core/Classes/Utility/RootlineUtility.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Utility/RootlineUtility.php
- typo3/sysext/core/Configuration/TCA/pages.php 20 additions, 20 deletionstypo3/sysext/core/Configuration/TCA/pages.php
Please register or sign in to comment