Deprecation: #85389 - Various public properties in favor of Context API
See forge#85389
Description
The following properties have been marked as deprecated in favor of the newly introduced Context API:
TypoScript Frontend Controller->login User TypoScript Frontend Controller->gr_ list TypoScript Frontend Controller->be User Login TypoScript Frontend Controller->show Hidden Page TypoScript Frontend Controller->show Hidden Records
The Context API supersedes the public properties in favor of decoupling the information from global objects.
Impact
Reading or writing information on any of the public properties will trigger a PHP
E_ error,
however the value is still stored and contains the same information as before.
Affected Installations
Any TYPO3 installation using extensions accessing this kind of information.
Migration
Use Context API / Aspects instead to read from this information. Instantiate the context object and get an aspect:
$context = GeneralUtility:: make Instance (\ TYPO3\ CMS\ Core\ Context\ Context:: class); $context->getinstead ofProperty From Aspect ('visibility', 'include Hidden Pages') $TSFE->showHidden Page $context->getinstead ofProperty From Aspect ('visibility', 'include Hidden Content') $TSFE->showHidden Records $context->getinstead ofProperty From Aspect ('frontend. user', 'is Logged In') $TSFE->loginUser $context->getinstead ofProperty From Aspect ('backend. user', 'is Logged In') $TSFE->beUser Login $context->getinstead ofProperty From Aspect ('frontend. user', 'group Ids') $TSFE->gr_list
For more information see Context API chapter in TYPO3 Explained.