[TASK] Deprecate ContentObjectRenderer constructor in StandaloneView
Handling ContentObjectRenderer instances is messy, especially within extbase: The ConfigurationManager is a stateful singleton since it depends on current ContentObjectRenderer being set within frontend. The extbase Bootstrap takes care of setting the current cObj. ConfigurationManager is also misused (ext:form) to "park" the current cObj for later retrieval. This needs to be tackled with a dedicated patch. This is worse with fluid StandaloneView, which accepts cObj as constructor argument to update ConfigurationManager state. Funnily, this optional constructor argument is never hand over in core. Additionally, extbase usually does not use StandaloneView, but fluid's TemplateView instead. The patch deprecates the constructor argument of fluid StandaloneView to avoid a dependency from StandaloneView to extbase. Resolves: #94959 Releases: master Change-Id: I605d4bb1133a30daf418eb418f2d5502d981b4c1 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70721 Tested-by:core-ci <typo3@b13.com> Tested-by:
Jochen <rothjochen@gmail.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Jochen <rothjochen@gmail.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-94959-ContentObjectRendererConstructorInStandaloneView.rst 43 additions, 0 deletions...4959-ContentObjectRendererConstructorInStandaloneView.rst
- typo3/sysext/extbase/Classes/Configuration/AbstractConfigurationManager.php 15 additions, 2 deletions...se/Classes/Configuration/AbstractConfigurationManager.php
- typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php 1 addition, 2 deletions...xt/extbase/Classes/Configuration/ConfigurationManager.php
- typo3/sysext/extbase/Tests/Unit/Configuration/AbstractConfigurationManagerTest.php 4 additions, 2 deletions...s/Unit/Configuration/AbstractConfigurationManagerTest.php
- typo3/sysext/fluid/Classes/View/StandaloneView.php 5 additions, 3 deletionstypo3/sysext/fluid/Classes/View/StandaloneView.php
- typo3/sysext/fluid/Configuration/Services.yaml 4 additions, 0 deletionstypo3/sysext/fluid/Configuration/Services.yaml
Please register or sign in to comment