Deprecation: #87332 - Avoid runtime reflection calls in ObjectAccess
See forge#87332
Description
Class \TYPO3\
uses reflection to make non public properties gettable and settable.
This behaviour is triggered by setting the argument $force
of methods
get
Property get
Property Internal set
Property
to true
. Triggering this behaviour has been marked as deprecated and will be removed in TYPO3 11.0.
Method \TYPO3\
has been marked as deprecated and will be removed in TYPO3 11.0.
Impact
- Accessing non public properties via the mentioned methods will no longer work in TYPO3 11.0.
- Calling
\TYPO3\
will no longer work in TYPO3 11.0.CMS\ Extbase\ Reflection\ Object Access:: build Setter Method Name
Affected Installations
- All installations that use the mentioned methods with argument
$force
set toDirect Access true
. - All installations that call
\TYPO3\
.CMS\ Extbase\ Reflection\ Object Access:: build Setter Method Name
Migration
1) Make sure the affected property is accessible by either making it public or providing getters/hassers/issers or setters
(get
, has
, is
, set
).
- Build setter names manually:
$setter
Method Name = 'set' . ucfirst ($property Name);