slub / slub_digitalcollections

Templates, Styles and Configuration for Kitodo.Presentation based Digital Collections by SLUB Dresden
GNU General Public License v3.0
7 stars 14 forks source link

Fix Deprecation: #88746 Path to `PageRepository` #70

Closed csidirop closed 5 months ago

csidirop commented 7 months ago

Change the path of PageRepository from TYPO3\CMS\Frontend\Page\PageRepository to TYPO3\CMS\Core\Domain\Repository\PageRepository.

See here: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.0/Deprecation-88746-PageRepositoryPHPClassMovedFromFrontendToCoreExtension.html

In previous TYPO3 versions, accessing records was mixed between Frontend (handled by PageRepository) and Backend (handled by static methods in BackendUtility). In TYPO3 v9, the Context API was introduced and PageRepository now acts as a strong database accessor which is not bound to Frontend anymore, at all.

In addition, various places of the backend also used PageRepository already, which violated the separation of packages, as TYPO3 Core aims to strictly separate Frontend and Backend application code.

In the case of PageRepository, the code is used by both applications, and is therefore moved to Core system extension (EXT:core), and renamed to TYPO3\CMS\Core\Domain\Repository\PageRepository.

Until TYPO3 v9, it was placed in TYPO3\CMS\Frontend\Page\PageRepository.