From 594516b65c3d6d8e21aa91e92df08552a2b780fd Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 29 Apr 2021 01:40:23 +0200 Subject: [PATCH] Develop (#65) * [FIX] Add correct return type to compress command * [FIX] Remove deprecated replace and add extension key in composer json * [CHANGE] Raise minor version to 1.5.3 --- CHANGELOG.md | 4 ++++ Classes/Command/CompressImagesCommand.php | 4 +++- composer.json | 2 +- ext_emconf.php | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19a34f4..6666ff8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 1.5.3 +* **[FIX]** Add correct return type to compress command +* **[FIX]** Remove deprecated replace and add extension key in composer json + ### 1.5.2 * **[FIX]** Clear file information cache before calculating saved percentage after compression * **[CHANGE]** Set typo3/cms-core dependency to security fixed versions diff --git a/Classes/Command/CompressImagesCommand.php b/Classes/Command/CompressImagesCommand.php index bf835de..cfb83e5 100644 --- a/Classes/Command/CompressImagesCommand.php +++ b/Classes/Command/CompressImagesCommand.php @@ -87,7 +87,7 @@ protected function initializeDependencies(): void * @param InputInterface $input * @param OutputInterface $output */ - protected function execute(InputInterface $input, OutputInterface $output): void + protected function execute(InputInterface $input, OutputInterface $output): int { $limit = (int)$input->getArgument('limit'); $this->initializeDependencies(); @@ -99,6 +99,8 @@ protected function execute(InputInterface $input, OutputInterface $output): void $this->compressImages($files); $this->clearPageCache(); } + + return Command::SUCCESS; } /** diff --git a/composer.json b/composer.json index 48ec081..4d506fc 100644 --- a/composer.json +++ b/composer.json @@ -33,12 +33,12 @@ } }, "replace": { - "tinyimg": "self.version", "typo3-ter/tinyimg": "self.version" }, "extra": { "typo3/cms": { "cms-package-dir": ".Build/typo3/cms", + "extension-key": "tinyimg", "web-dir": ".Build/Web", "Package": { "partOfMinimalUsableSystem": true diff --git a/ext_emconf.php b/ext_emconf.php index 69c0528..f3af117 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -6,7 +6,7 @@ 'author' => 'Alessandro Schmitz', 'author_email' => 'alessandro.schmitz@interlutions.de', 'author_company' => 'Interlutions GmbH', - 'version' => '1.5.2', + 'version' => '1.5.3', 'state' => 'beta', 'clearCacheOnLoad' => true, 'constraints' => [