[BUGFIX] Allow Tree DataProviders with original constructor
If a treedataprovider (e.g. from news) extends from Core's constructor, Core hands in various multiple arguments. However, Core is configured to only hand in one argument, which is auto-wired. So there are multiple options: - Third-party extensions would need to be autowiring their signatures as well, however would never receive the EventDispatcher object. - Reflect on the constructor method and hand in the EventDispatcher manually, but also with the custom arguments as an additional argument - throw away the custom configuration options and use setter injection for the options Resolves: #90302 Releases: master Change-Id: I5874e5819f2bda3b4470cf7bd447e0161169536f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63184 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Susanne Moog <look@susi.dev>
Showing
- typo3/sysext/core/Classes/Tree/TableConfiguration/TreeDataProviderFactory.php 22 additions, 1 deletion...asses/Tree/TableConfiguration/TreeDataProviderFactory.php
- typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/TreeDataProviderFactoryTest.php 5 additions, 0 deletions...t/Tree/TableConfiguration/TreeDataProviderFactoryTest.php
Please register or sign in to comment