[!!!][FEATURE] Migrate hooks in PageRepository
The two leftover hooks $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Core\Domain\PageRepository::class]['init'] and $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_page.php']['getPage'] have been removed. The former hook is removed without substitution, as the hook has no benefit anymore in TYPO3 v13: * There are no public properties to modify after initialization * `PageRepository` is instantiated multiple times nowadays, instead of being a kind-of singleton via TSFE->sys_page The latter hook is replaced by the more powerful PSR-14 `BeforePageIsRetrievedEvent`, which can not only modify the UID of the incoming page, but also actually resolve the whole Page directly and bypassing the actual logic from PageRepository. Resolves: #102806 Releases: main Change-Id: Id816769a9ed01c8c9f8eeeef3c5fb8710729343a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82418 Tested-by:Oliver Bartsch <bo@cedev.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
parent
2557776c
Please register or sign in to comment