Project

General

Profile

Actions

Bug #90302

closed

DatabaseTreeDataProvider crashes after switching to PSR-14

Added by Georg Ringer about 4 years ago. Updated about 4 years ago.

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

100%

Estimated time:
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 2 (0 open2 closed)

Related to TYPO3 Core - Feature #89733: Migrate various Signal Slots to PSR-14 eventsClosedBenni Mack2019-11-21

Actions
Related to TYPO3 Core - Bug #90399: Unable to use EventDispatcherInterface in custom TreeDataProviderClosed2020-02-16

Actions
Actions

Also available in: Atom PDF