Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • Typolink
  • PageLinkBuilder.php
Find file BlameHistoryPermalink
  • Benni Mack's avatar
    [TASK] Move PageRepository to EXT:core · 0cdab109
    Benni Mack authored Jul 13, 2019 and Benjamin Franzke's avatar Benjamin Franzke committed Jul 17, 2019
    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: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
    Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
    Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    0cdab109