Skip to content
Snippets Groups Projects
Commit 187c443f authored by Benni Mack's avatar Benni Mack
Browse files

[!!!][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: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 2557776c
No related branches found
No related tags found
No related merge requests found
Showing
with 382 additions and 46 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment