[TASK] Avoid ObjectManager in ext:fluid RenderingContext
RenderingContext is a good case for a class that creates "arbitrary" objects: The PreProcessor class names are retrieved from global configuration in order to be instantiated. This initialization is moved into a (install tool mode compatible) factory in order to transform ObjectManager into a fallback layer for PreProcessors that are not defined in the newer PSR container. Therefore $container->has() is used prior to $container->get(), in order to fallback to ObjectManager for objects that can't be retrieved – due to missing configuration – via ContainerInterface yet. Resolves: #94285 Related: #90803 Releases: master Change-Id: I3fd1751b8580de7c8307e9b84da38e1551c2c622 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69412 Tested-by:core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <bfr@qbus.de> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/extbase/Configuration/Services.yaml 4 additions, 0 deletionstypo3/sysext/extbase/Configuration/Services.yaml
- typo3/sysext/fluid/Classes/Core/Rendering/RenderingContext.php 27 additions, 36 deletions.../sysext/fluid/Classes/Core/Rendering/RenderingContext.php
- typo3/sysext/fluid/Classes/Core/Rendering/RenderingContextFactory.php 105 additions, 0 deletions.../fluid/Classes/Core/Rendering/RenderingContextFactory.php
- typo3/sysext/fluid/Classes/ServiceProvider.php 55 additions, 0 deletionstypo3/sysext/fluid/Classes/ServiceProvider.php
- typo3/sysext/fluid/Classes/View/AbstractTemplateView.php 2 additions, 2 deletionstypo3/sysext/fluid/Classes/View/AbstractTemplateView.php
- typo3/sysext/fluid/Classes/View/StandaloneView.php 3 additions, 5 deletionstypo3/sysext/fluid/Classes/View/StandaloneView.php
- typo3/sysext/fluid/Configuration/Services.yaml 22 additions, 0 deletionstypo3/sysext/fluid/Configuration/Services.yaml
- typo3/sysext/fluid/composer.json 1 addition, 0 deletionstypo3/sysext/fluid/composer.json
Please register or sign in to comment