diff --git a/Build/composer-unused/composer-unused.php b/Build/composer-unused/composer-unused.php index b223e9bb..df912a7a 100644 --- a/Build/composer-unused/composer-unused.php +++ b/Build/composer-unused/composer-unused.php @@ -3,9 +3,8 @@ declare(strict_types=1); use ComposerUnused\ComposerUnused\Configuration\Configuration; -use ComposerUnused\ComposerUnused\Configuration\NamedFilter; + return static function (Configuration $config): Configuration { - $config->addNamedFilter(NamedFilter::fromString('typo3/cms-fluid')); return $config; }; diff --git a/Build/phpstan/phpstan.neon b/Build/phpstan/phpstan.neon index 594ff22d..7f336ba4 100644 --- a/Build/phpstan/phpstan.neon +++ b/Build/phpstan/phpstan.neon @@ -62,6 +62,10 @@ parameters: - '$_FILES' - '$_SERVER' message: 'Use PSR-7 API instead' + + excludePaths: + # We need this Class only for V12. So we exclude it here + - ../../Classes/Upgrades/AbstractListTypeToCTypeUpdate.php ignoreErrors: - diff --git a/Configuration/Services.php b/Configuration/Services.php index 1e95f19d..fb637ffe 100644 --- a/Configuration/Services.php +++ b/Configuration/Services.php @@ -11,7 +11,8 @@ ->services() ->defaults() ->autowire() - ->autoconfigure(); + ->autoconfigure() + ->public(); $services ->load('TTN\\Tea\\', '../Classes/*') diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index 8a35b8d8..93a3bb21 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -1,56 +1,68 @@ Visible Sichtbar - + + Tea plugins + Tea + + + Tea Index + Teeliste + + + Tea plugin to show the listview. + Tea Plugin für eine Listenansicht. + + diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index 2cb6e432..585e4768 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -27,6 +27,15 @@ Visible - + + Tea + + + Tea Index + + + Tea plugin to show the listview. + + diff --git a/Tests/Functional/Controller/Fixtures/Database/FrontEndEditorController/ContentElement.csv b/Tests/Functional/Controller/Fixtures/Database/FrontEndEditorController/ContentElement.csv index 9420a7c4..a5d8501f 100644 --- a/Tests/Functional/Controller/Fixtures/Database/FrontEndEditorController/ContentElement.csv +++ b/Tests/Functional/Controller/Fixtures/Database/FrontEndEditorController/ContentElement.csv @@ -1,14 +1,14 @@ "tt_content" -,"uid","pid","CType","header","list_type","pi_flexform" -,1,1,"list","Tea FrontEnd Editor","tea_teafrontendeditor"," - - - - - - 2 - - - - - " +,"uid","pid","CType","header","pi_flexform" +,1,1,"tea_teafrontendeditor","Tea FrontEnd Editor"," + + + + + + 2 + + + + + " diff --git a/Tests/Functional/Controller/Fixtures/Database/TeaController/ContentElements.csv b/Tests/Functional/Controller/Fixtures/Database/TeaController/ContentElements.csv index c4f2e612..61a86d7e 100644 --- a/Tests/Functional/Controller/Fixtures/Database/TeaController/ContentElements.csv +++ b/Tests/Functional/Controller/Fixtures/Database/TeaController/ContentElements.csv @@ -1,6 +1,6 @@ "tt_content" -,"uid","pid","CType","header","list_type","pi_flexform" -,1,1,"list","Tea index","tea_teaindex"," +,"uid","pid","CType","header","pi_flexform" +,1,1,"tea_teaindex","Tea index"," @@ -18,4 +18,4 @@ " -,2,3,"list","Tea show","tea_teashow","" +,2,3,"tea_teashow","Tea show","" diff --git a/composer.json b/composer.json index 7d19062e..3d91fd17 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,6 @@ "psr/http-message": "^1.0.1", "typo3/cms-core": "^12.4.41", "typo3/cms-extbase": "^12.4.41 || ^13.4", - "typo3/cms-fluid": "^12.4.41 || ^13.4", "typo3/cms-frontend": "^12.4.41 || ^13.4" }, "require-dev": { diff --git a/ext_localconf.php b/ext_localconf.php index 76fb8c79..9296f0f6 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -4,6 +4,7 @@ use TTN\Tea\Controller\FrontEndEditorController; use TTN\Tea\Controller\TeaController; +use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; use TYPO3\CMS\Extbase\Utility\ExtensionUtility; defined('TYPO3') or die('Access denied.'); @@ -21,7 +22,8 @@ // non-cacheable actions [ TeaController::class => '', - ] + ], + ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT ); ExtensionUtility::configurePlugin( 'Tea', @@ -31,7 +33,8 @@ ], [ TeaController::class => '', - ] + ], + ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT ); // This makes the plugin available for front-end rendering. @@ -49,5 +52,8 @@ // All actions need to be non-cacheable because they either contain dynamic data, // or because they are specific to the logged-in FE user (while FE content is cached by FE groups). FrontEndEditorController::class => 'index, edit, update, create, new, delete', - ] + ], + ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT ); + +ExtensionManagementUtility::addPageTSConfig('@import \'EXT:tea/Configuration/TSconfig/Page/ContentElementWizard.tsconfig\'');