[!!!][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>
Showing
- typo3/sysext/core/Classes/Domain/Event/BeforePageIsRetrievedEvent.php 73 additions, 0 deletions.../core/Classes/Domain/Event/BeforePageIsRetrievedEvent.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepository.php 13 additions, 25 deletions.../sysext/core/Classes/Domain/Repository/PageRepository.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepositoryGetPageHookInterface.php 1 addition, 0 deletions.../Domain/Repository/PageRepositoryGetPageHookInterface.php
- typo3/sysext/core/Classes/Domain/Repository/PageRepositoryInitHookInterface.php 1 addition, 0 deletions...ses/Domain/Repository/PageRepositoryInitHookInterface.php
- typo3/sysext/core/Documentation/Changelog/13.0/Breaking-102806-HooksInPageRepositoryRemoved.rst 51 additions, 0 deletions...log/13.0/Breaking-102806-HooksInPageRepositoryRemoved.rst
- typo3/sysext/core/Documentation/Changelog/13.0/Deprecation-102806-InterfacesForPageRepositoryHooks.rst 48 additions, 0 deletions...0/Deprecation-102806-InterfacesForPageRepositoryHooks.rst
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-102806-BeforePageIsRetrievedEventInPageRepository.rst 66 additions, 0 deletions...ure-102806-BeforePageIsRetrievedEventInPageRepository.rst
- typo3/sysext/core/Tests/Functional/Domain/Repository/PageRepositoryTest.php 33 additions, 21 deletions...Tests/Functional/Domain/Repository/PageRepositoryTest.php
- typo3/sysext/core/Tests/Unit/Domain/Event/BeforePageIsRetrievedEventTest.php 68 additions, 0 deletions...ests/Unit/Domain/Event/BeforePageIsRetrievedEventTest.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php 14 additions, 0 deletions...figuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php 14 additions, 0 deletions...l/Configuration/ExtensionScanner/Php/ClassNameMatcher.php
Loading
Please register or sign in to comment