cedricziel / idea-php-typo3-plugin

TYPO3 CMS Plugins for IntelliJ IDEA / PhpStorm
MIT License
96 stars 8 forks source link

Invalid errors for backend routes #136

Closed sgrossberndt closed 6 years ago

sgrossberndt commented 6 years ago

In \TYPO3\CMS\Recordlist\Browser\FileBrowser::renderFilesInFolder() an error is shown by the plugin for

            $uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
            // Create link to showing details about the file in a window:
            $Ahref = (string)$uriBuilder->buildUriFromRoute('show_item', [
                'type' => 'file',
                'table' => '_FILE',
                'uid' => $fileObject->getCombinedIdentifier(),
                'returnUrl' => GeneralUtility::getIndpEnv('REQUEST_URI')
            ]);

This happens as well in \TYPO3\CMS\Backend\Controller\BackendController::__construct():

        $this->pageRenderer->addInlineSetting('ShowItem', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('show_item'));
        $this->pageRenderer->addInlineSetting('RecordHistory', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('record_history'));
        $this->pageRenderer->addInlineSetting('NewRecord', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('db_new'));
        $this->pageRenderer->addInlineSetting('FormEngine', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('record_edit'));
        $this->pageRenderer->addInlineSetting('RecordCommit', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('tce_db'));
        $this->pageRenderer->addInlineSetting('WebLayout', 'moduleUrl', (string)$uriBuilder->buildUriFromRoute('web_layout'));

although these routes exist in typo3/sysext/backend/Configuration/Backend/Routes.php

cedricziel commented 6 years ago

Still on v0.2.36?

sgrossberndt commented 6 years ago

😬

cedricziel commented 6 years ago

:D

cedricziel commented 6 years ago

Thx for confirming my test cases then :wink:

sgrossberndt commented 6 years ago

:-D