Bug #90302

DatabaseTreeDataProvider crashes after switching to PSR-14

Added by Georg Ringer 22 days ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-02-03
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

After #89733 the feature of custom tree providers doesn't work anymore.

Reason is that in TreeDataProviderFactory line 44 there is this call

$dataProvider = GeneralUtility::makeInstance($tcaConfiguration['treeConfig']['dataProvider'], $tcaConfiguration, $table, $field, $currentValue);

this will call the treeprovider with the tcaConfiguration as 1st constructor parameter which of course won't work anymore because this is no using DI

    public function __construct(EventDispatcherInterface $eventDispatcher)
    {
        $this->eventDispatcher = $eventDispatcher;
    }


Related issues

Related to TYPO3 Core - Feature #89733: Migrate various Signal Slots to PSR-14 events Closed 2019-11-21
Related to TYPO3 Core - Bug #90399: Unable to use EventDispatcherInterface in custom TreeDataProvider Closed 2020-02-16

History

#1 Updated by Georg Ringer 22 days ago

  • Related to Feature #89733: Migrate various Signal Slots to PSR-14 events added

#2 Updated by Christoph Lehmann 8 days ago

  • Related to Bug #90399: Unable to use EventDispatcherInterface in custom TreeDataProvider added

Also available in: Atom PDF