Deprecation: #90260 - ResourceFactory::getInstance pseudo-factory
See forge#90260
Description
The method Resource
acts as a wrapper
for the constructor which originally was meant as a performance
improvement as pseudo-singleton concept in TYPO3 v4.7.
However, Resource
was never optimized and now with Dependency
Injection, Resource
can be used directly.
Therefore the method has been marked as deprecated.
Impact
Calling Resource
will trigger a PHP E_
error.
Affected Installations
Any TYPO3 installation with custom PHP code calling the method.
Migration
Check TYPO3's "Extension Scanner" in the Install Tool if you're affected and replace with constructor injection via Dependency
Injection if possible, or use General
instead.
The latter can already applied in earlier versions (TYPO3 v7 or higher) to ease optimal migration of this deprecation.