Deprecation: #94959 - ContentObjectRenderer constructor in StandaloneView
See forge#94959
Description
The \TYPO3\
constructor
argument of \TYPO3\
has been marked as
deprecated. The TYPO3 core never used this optional argument and
it added a hard dependency to Extbase classes from StandaloneView, which should
be avoided.
The Content
instance within Standalone
has been used to update
the Extbase \TYPO3\
singleton,
even though Extbase bootstrap already sets the current ContentObjectRenderer to
Configuration
.
Impact
Extensions creating instances of Standalone
and handing over an
instance of Content
as constructor argument will see a PHP E_
error raised.
Affected Installations
Most instances are probably not affected by this change since handing over the constructor argument is rather unusual.
Migration
Do not hand over an instance of Content
when creating an
instance of Standalone
.