Skip to content
Snippets Groups Projects
Commit 989fbe05 authored by Benni Mack's avatar Benni Mack Committed by Susanne Moog
Browse files

[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: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent adbd31c7
No related merge requests found
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