Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation: #85130 - $TSFE->getPageShortcut() moved to PageRepository #1063

Closed
sabbelasichon opened this issue Nov 4, 2019 · 0 comments · Fixed by #1594
Closed

Deprecation: #85130 - $TSFE->getPageShortcut() moved to PageRepository #1063

sabbelasichon opened this issue Nov 4, 2019 · 0 comments · Fixed by #1594

Comments

@sabbelasichon
Copy link
Owner

Deprecation: #85130 - $TSFE->getPageShortcut() moved to PageRepository

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.3/Deprecation-85130-TSFE-getPageShortcutMovedToPageRepository.html

.. include:: ../../Includes.txt

======================================================================

Deprecation: #85130 - $TSFE->getPageShortcut() moved to PageRepository

======================================================================

See :issue:85130

Description

===========

The method :php:TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::getPageShortcut() has been

moved to :php:TYPO3\CMS\Frontend\Page\PageRepository::getPageShortcut(), as it conceptually belongs in

this class.

Impact

======

Calling the method will trigger a PHP :php:E_USER_DEPRECATED error.

Affected Installations

======================

TYPO3 installations using the method directly in an extension.

Migration

=========

Switch the call :php:$GLOBALS['TSFE']->getPageShortcut() to :php:$GLOBALS['TSFE']->sys_page->getPageShortcut() to receive the exact

same result without a deprecation message.

.. index:: Frontend, PHP-API, PartiallyScanned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant