Issue Bug Closed

#90302DatabaseTreeDataProvider crashes after switching to PSR-14

Georg Ringer 02/03/20, 10:39 updated 04/01/20, 21:14

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;
    }

Reviews 1