An error occurred while retrieving diff 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:Oliver Bartsch <bo@cedev.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
core-ci <typo3@b13.com>
Showing
- typo3/sysext/backend/Classes/View/BackendLayout/DataProviderContext.php 81 additions, 8 deletions...ackend/Classes/View/BackendLayout/DataProviderContext.php
- typo3/sysext/backend/Classes/View/BackendLayout/DefaultDataProvider.php 3 additions, 3 deletions...ackend/Classes/View/BackendLayout/DefaultDataProvider.php
- typo3/sysext/backend/Classes/View/BackendLayout/PageTsBackendLayoutDataProvider.php 1 addition, 1 deletion...es/View/BackendLayout/PageTsBackendLayoutDataProvider.php
- typo3/sysext/backend/Classes/View/BackendLayoutView.php 7 additions, 12 deletionstypo3/sysext/backend/Classes/View/BackendLayoutView.php
- typo3/sysext/core/Documentation/Changelog/13.4/Deprecation-105252-DataProviderContextGettersAndSetters.rst 86 additions, 0 deletions...precation-105252-DataProviderContextGettersAndSetters.rst
Please register or sign in to comment