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:
Typo
Script Frontend Controller->login User Typo
Script Frontend Controller->gr_ list Typo
Script Frontend Controller->be User Login Typo
Script Frontend Controller->show Hidden Page Typo
Script 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 = General
Utility:: make Instance (\ TYPO3\ CMS\ Core\ Context\ Context:: class); $context->get
instead ofProperty From Aspect ('visibility', 'include Hidden Pages') $TSFE->show
Hidden Page $context->get
instead ofProperty From Aspect ('visibility', 'include Hidden Content') $TSFE->show
Hidden Records $context->get
instead ofProperty From Aspect ('frontend. user', 'is Logged In') $TSFE->login
User $context->get
instead ofProperty From Aspect ('backend. user', 'is Logged In') $TSFE->be
User Login $context->get
instead ofProperty From Aspect ('frontend. user', 'group Ids') $TSFE->gr_
list
For more information see Context API chapter in TYPO3 Explained.