From 2d540cf1f30f767b28816aaafcd7bba52adf60cc Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Fri, 26 Dec 2025 13:31:38 +0100 Subject: [PATCH 1/4] Add TYPO3 14 compatibility --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 97410bd..48178d9 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ ], "require": { "php": "^8.0", - "typo3/cms-backend": "^11.0 || ^12.0 || ^13.0", - "typo3/cms-core": "^11.0 || ^12.0 || ^13.0", - "typo3/cms-frontend": "^11.0 || ^12.0 || ^13.0", + "typo3/cms-backend": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-core": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-frontend": "^11.0 || ^12.0 || ^13.0 || ^14.0", "sentry/sentry": "^4.6" }, "extra": { From d3e8e344be99e1fa2a6914accd8f8337518efebb Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Fri, 26 Dec 2025 13:33:09 +0100 Subject: [PATCH 2/4] Remove old TYPO3 compatibilities --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 48178d9..6bfa6a3 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ ], "require": { "php": "^8.0", - "typo3/cms-backend": "^11.0 || ^12.0 || ^13.0 || ^14.0", - "typo3/cms-core": "^11.0 || ^12.0 || ^13.0 || ^14.0", - "typo3/cms-frontend": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-backend": "^14.0", + "typo3/cms-core": "^14.0", + "typo3/cms-frontend": "^14.0", "sentry/sentry": "^4.6" }, "extra": { From 0579c5da61f0dba4dfd810a7cba9f9e10bef3853 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Fri, 26 Dec 2025 13:33:44 +0100 Subject: [PATCH 3/4] Migrate SystemInfoToolbar to new InformationStatus enum --- .../SystemInformationToolbarCollectorEventListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php b/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php index 5f499de..2f80421 100644 --- a/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php +++ b/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php @@ -5,7 +5,7 @@ use Networkteam\SentryClient\Service\ConfigurationService; use Networkteam\SentryClient\Service\SentryService; use TYPO3\CMS\Backend\Backend\Event\SystemInformationToolbarCollectorEvent; -use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus; +use TYPO3\CMS\Backend\Toolbar\InformationStatus; use TYPO3\CMS\Core\Localization\LanguageService; class SystemInformationToolbarCollectorEventListener @@ -21,7 +21,7 @@ public function __invoke(SystemInformationToolbarCollectorEvent $event): void 'Sentry', $label, 'tx-sentryclient-sentry-glyph-light', - $isActive ? InformationStatus::STATUS_OK : InformationStatus::STATUS_ERROR + $isActive ? InformationStatus::OK : InformationStatus::ERROR ); if ($isActive) { From fdfbefffefbb2ff78468dbb2297e82f4cb773da5 Mon Sep 17 00:00:00 2001 From: Stefan Froemken Date: Mon, 19 Jan 2026 21:03:38 +0100 Subject: [PATCH 4/4] Keep compat with all existing TYPO3 versions --- .../SystemInformationToolbarCollectorEventListener.php | 10 ++++++---- composer.json | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php b/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php index 2f80421..4f7f014 100644 --- a/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php +++ b/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php @@ -5,7 +5,8 @@ use Networkteam\SentryClient\Service\ConfigurationService; use Networkteam\SentryClient\Service\SentryService; use TYPO3\CMS\Backend\Backend\Event\SystemInformationToolbarCollectorEvent; -use TYPO3\CMS\Backend\Toolbar\InformationStatus; +use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus; +use TYPO3\CMS\Backend\Toolbar\InformationStatus as InformationStatusEnum; use TYPO3\CMS\Core\Localization\LanguageService; class SystemInformationToolbarCollectorEventListener @@ -21,8 +22,9 @@ public function __invoke(SystemInformationToolbarCollectorEvent $event): void 'Sentry', $label, 'tx-sentryclient-sentry-glyph-light', - $isActive ? InformationStatus::OK : InformationStatus::ERROR - ); + $isActive + ? (enum_exists(InformationStatusEnum::class) ? InformationStatusEnum::OK : InformationStatus::STATUS_OK) + : (enum_exists(InformationStatusEnum::class) ? InformationStatusEnum::ERROR : InformationStatus::STATUS_ERROR) ); if ($isActive) { $release = ConfigurationService::getRelease(); @@ -40,4 +42,4 @@ protected function getLanguageService(): LanguageService { return $GLOBALS['LANG']; } -} \ No newline at end of file +} diff --git a/composer.json b/composer.json index 6bfa6a3..48178d9 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ ], "require": { "php": "^8.0", - "typo3/cms-backend": "^14.0", - "typo3/cms-core": "^14.0", - "typo3/cms-frontend": "^14.0", + "typo3/cms-backend": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-core": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-frontend": "^11.0 || ^12.0 || ^13.0 || ^14.0", "sentry/sentry": "^4.6" }, "extra": {