Skip to content
Snippets Groups Projects
Commit e5481924 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Turn DataProviderContext into a PCPP DO

DataProviderContext is a DO hand over to single backend
layout providers. This is state that should be hand over
and must not be injected, using SingletonInterface is an
anti-pattern with this class.

The patch:
* Removes SingletonInterface
* Introduces PCPP and instantiates with new()
* Declares final
* Deprecates all getters and setters
* Prepares the class to be set readonly in TYPO3 v14
* Adapts usages
* Adds a deprecation ReST

Resolves: #105252
Releases: main
Change-Id: I72ba069a70415d8b80512e288668d3ef9d9eb3ac
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86534


Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 2c72e747
Branches
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