From 8d113e61d044b1035752daaf5d666b8057d3b65b Mon Sep 17 00:00:00 2001 From: Nicklas Mantek Date: Wed, 27 Aug 2025 11:21:39 +0200 Subject: [PATCH 1/2] support typo v13 --- .../Controller/AdministrationController.php | 2 -- Configuration/Services.yaml | 3 +++ .../TCA/tx_formhandler_domain_model_log.php | 9 +-------- composer.json | 20 +++++++++---------- ext_emconf.php | 2 +- 5 files changed, 15 insertions(+), 21 deletions(-) diff --git a/Classes/Controller/AdministrationController.php b/Classes/Controller/AdministrationController.php index 8ac34f4b..6fdf9362 100644 --- a/Classes/Controller/AdministrationController.php +++ b/Classes/Controller/AdministrationController.php @@ -13,7 +13,6 @@ namespace Typoheads\Formhandler\Controller; use Psr\Http\Message\ResponseInterface; -use TYPO3\CMS\Backend\Attribute\Controller; use TYPO3\CMS\Backend\Template\ModuleTemplateFactory; use TYPO3\CMS\Core\Http\PropagateResponseException; use TYPO3\CMS\Core\Imaging\IconFactory; @@ -25,7 +24,6 @@ use Typoheads\Formhandler\Domain\Model\Log; use Typoheads\Formhandler\Domain\Repository\LogRepository; -#[Controller] final class AdministrationController extends ActionController { public function __construct( protected readonly ModuleTemplateFactory $moduleTemplateFactory, diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index 38f7c9d3..ed04925f 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -17,3 +17,6 @@ services: Typoheads\Formhandler\Session\Typo3Session: arguments: $cache: '@cache.formhandler_cache' + + Typoheads\Formhandler\Controller\AdministrationController: + tags: ['backend.controller'] \ No newline at end of file diff --git a/Configuration/TCA/tx_formhandler_domain_model_log.php b/Configuration/TCA/tx_formhandler_domain_model_log.php index fca496ac..ed863cc2 100644 --- a/Configuration/TCA/tx_formhandler_domain_model_log.php +++ b/Configuration/TCA/tx_formhandler_domain_model_log.php @@ -40,8 +40,7 @@ 'renderType' => 'checkboxToggle', 'items' => [ [ - 0 => '', - 1 => '', + 'label' => '', 'invertStateDisplay' => true, ], ], @@ -94,12 +93,6 @@ 'config' => [ 'type' => 'check', 'renderType' => 'checkboxToggle', - 'items' => [ - [ - 0 => '', - 1 => '', - ], - ], ], ], 'crdate' => [ diff --git a/composer.json b/composer.json index f7ab52a1..7e62af57 100644 --- a/composer.json +++ b/composer.json @@ -15,21 +15,21 @@ ], "require": { "php": "^8.2", - "typo3/cms-core": "^12.4", - "typo3/cms-extbase": "^12.4", - "typo3/cms-fluid": "^12.4", - "typo3/cms-frontend": "^12.4", + "typo3/cms-core": "^12.4 || ^13.4", + "typo3/cms-extbase": "^12.4 || ^13.4", + "typo3/cms-fluid": "^12.4 || ^13.4", + "typo3/cms-frontend": "^12.4 || ^13.4", "tecnickcom/tcpdf": "^6.6", "parsecsv/php-parsecsv": "^1.3", "esi/mimey": "^1.0" }, "require-dev": { - "typo3/cms-backend": "^12.4", - "symfony/mailer": "^6.3", - "phpstan/phpstan": "^1.10", - "saschaegerer/phpstan-typo3": "^1.8", - "helmich/typo3-typoscript-lint": "^3.1", - "friendsofphp/php-cs-fixer": "^3.18", + "typo3/cms-backend": "^12.4 || ^13.4", + "symfony/mailer": "^7.1", + "phpstan/phpstan": "^1.12", + "saschaegerer/phpstan-typo3": "^1.10", + "helmich/typo3-typoscript-lint": "^3", + "friendsofphp/php-cs-fixer": "^3", "google/recaptcha": "^1.3", "jakota/documentation-builder": "dev-main" }, diff --git a/ext_emconf.php b/ext_emconf.php index dae01731..033301bd 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -17,7 +17,7 @@ 'version' => '9.0.0', 'constraints' => [ 'depends' => [ - 'typo3' => '^12.4', + 'typo3' => '12.4.0-13.4.99', ], 'conflicts' => [], 'suggests' => [], From f648bacb5ffcc7d529293c35d625f1f2dc8452f0 Mon Sep 17 00:00:00 2001 From: Nicklas Mantek Date: Wed, 27 Aug 2025 11:24:50 +0200 Subject: [PATCH 2/2] change mailer dep --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7e62af57..69c0ef1b 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ }, "require-dev": { "typo3/cms-backend": "^12.4 || ^13.4", - "symfony/mailer": "^7.1", + "symfony/mailer": "^6.4 || ^7.0", "phpstan/phpstan": "^1.12", "saschaegerer/phpstan-typo3": "^1.10", "helmich/typo3-typoscript-lint": "^3",