Skip to content
Snippets Groups Projects
Commit 4ee479d6 authored by Benni Mack's avatar Benni Mack Committed by Oliver Hader
Browse files

[TASK] Replace ResourceFactory::getInstance() with makeInstance

The so-called "singleton factory instance" is a wrapper around makeInstance
which can be used directly anyways.

With Dependency Injection this is not even necessary anymore, and should
be avoided under all circumstances.

The constructor does not cache anything, so this can be replaced completely.

SingletonInterface + DI should be sufficient already.

Resolves: #90260
Releases: master
Change-Id: I964ddb90425b273c6e7588781c4b7e3fe39ddd18
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63076


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
parent f02f4e22
Branches
Tags
Showing
with 25 additions and 24 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment