From 4b0754f8a18f3d60de7940f61b2db62395aa6416 Mon Sep 17 00:00:00 2001 From: Georgi Mateev <georgi.mateev@sgalinski.de> Date: Fri, 2 Aug 2024 16:06:06 +0300 Subject: [PATCH] [TASK] Release Version 4.2.1 --- Classes/Upgrades/ThumbnailsUpgradeWizard.php | 20 +++++++------------- composer.json | 2 +- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Classes/Upgrades/ThumbnailsUpgradeWizard.php b/Classes/Upgrades/ThumbnailsUpgradeWizard.php index 391bcb1..6472f4d 100644 --- a/Classes/Upgrades/ThumbnailsUpgradeWizard.php +++ b/Classes/Upgrades/ThumbnailsUpgradeWizard.php @@ -33,26 +33,22 @@ use TYPO3\CMS\Install\Attribute\UpgradeWizard; use TYPO3\CMS\Install\Updates\UpgradeWizardInterface; #[UpgradeWizard('sgVimeo_thumbnailsUpgradeWizard')] -final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface -{ +final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface { /** * Return the speaking name of this wizard */ - public function getTitle(): string - { + public function getTitle(): string { return 'Migrate the thumbnails field name in the database'; } /** * Return the description for this wizard */ - public function getDescription(): string - { + public function getDescription(): string { return 'This must be done in TYPO3 12 due to a bug and changes to how files fields are handled. See https://forge.typo3.org/issues/103885'; } - public function executeUpdate(): bool - { + public function executeUpdate(): bool { $connection = GeneralUtility::makeInstance(ConnectionPool::class) ->getConnectionForTable('sys_file_reference'); @@ -65,11 +61,10 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface ); $queryBuilder->executeStatement(); - return true; + return TRUE; } - public function updateNecessary(): bool - { + public function updateNecessary(): bool { $connection = GeneralUtility::makeInstance(ConnectionPool::class) ->getConnectionForTable('sys_file_reference'); @@ -88,8 +83,7 @@ final class ThumbnailsUpgradeWizard implements UpgradeWizardInterface return (int)$count > 0; } - public function getPrerequisites(): array - { + public function getPrerequisites(): array { // Add your logic here } } diff --git a/composer.json b/composer.json index d81c544..f1f00e8 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "A solution for embedding Vimeo videos, playlists, or channels easily into TYPO3 pages.", "homepage": "https://www.sgalinski.de", "license": "GPL-2.0-or-later", - "version": "4.2.0", + "version": "4.2.1", "require": { "typo3/cms-core": "^12.4.0", "vimeo/vimeo-api": "^3.0" -- GitLab