Skip to content

Commit 39748c5

Browse files
committed
[RELEASE] Version 12.5.4 with small bugfixes
Releases: https://projekte.in2code.de/issues/64747 Releases: https://projekte.in2code.de/issues/65670
2 parents 1ef0953 + c9f809d commit 39748c5

File tree

5 files changed

+12
-15
lines changed

5 files changed

+12
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# In2publish Core Change Log
22

3+
15.5.4:
4+
- [BUGFIX] Enable Logging in Command on foreign
5+
- [BUGFIX] LogLevel is evaluated correctly
6+
37
12.5.3:
48

59
- [CODESTYLE] Make qa happy

Classes/Component/PostPublishTaskExecution/Command/Foreign/RunTasksInQueueCommand.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
use In2code\In2publishCore\Component\PostPublishTaskExecution\Domain\Model\Task\AbstractTask;
3333
use In2code\In2publishCore\Component\PostPublishTaskExecution\Domain\Repository\TaskRepositoryInjection;
3434
use In2code\In2publishCore\Service\Context\ContextServiceInjection;
35-
use Psr\Log\LoggerInterface;
35+
use Psr\Log\LoggerAwareInterface;
36+
use Psr\Log\LoggerAwareTrait;
3637
use Symfony\Component\Console\Command\Command;
3738
use Symfony\Component\Console\Input\InputInterface;
3839
use Symfony\Component\Console\Output\OutputInterface;
@@ -46,21 +47,14 @@
4647

4748
use const JSON_THROW_ON_ERROR;
4849

49-
class RunTasksInQueueCommand extends Command
50+
class RunTasksInQueueCommand extends Command implements LoggerAwareInterface
5051
{
5152
use ContextServiceInjection;
5253
use TaskRepositoryInjection;
54+
use LoggerAwareTrait;
5355

5456
public const IDENTIFIER = 'in2publish_core:publishtasksrunner:runtasksinqueue';
5557

56-
protected ?LoggerInterface $logger = null;
57-
58-
public function __construct(LoggerInterface $logger)
59-
{
60-
$this->logger = $logger;
61-
parent::__construct();
62-
}
63-
6458
public function isEnabled(): bool
6559
{
6660
return $this->contextService->isForeign();

Classes/Utility/LogUtility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
* This copyright notice MUST APPEAR in all copies of the script!
2828
*/
2929

30-
use Psr\Log\LogLevel;
30+
use TYPO3\CMS\Core\Log\LogLevel;
3131
use TYPO3\CMS\Core\Messaging\AbstractMessage;
3232

3333
class LogUtility
3434
{
3535
public static function translateLogLevelToSeverity(int $logLevel): int
3636
{
37-
switch ($logLevel) {
37+
switch (LogLevel::getInternalName($logLevel)) {
3838
case LogLevel::DEBUG:
3939
$severity = AbstractMessage::NOTICE;
4040
break;

Configuration/Component/PostPublishTaskExecution/ForeignServices.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@
2525
'hidden' => true,
2626
'schedulable' => false,
2727
],
28-
)
29-
->public();
28+
);
3029
};

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'title' => 'in2publish Core',
1010
'description' => 'Content publishing extension to connect stage and production server',
1111
'category' => 'plugin',
12-
'version' => '12.5.3',
12+
'version' => '12.5.4',
1313
'state' => 'stable',
1414
'clearCacheOnLoad' => true,
1515
'author' => 'Alex Kellner, Oliver Eglseder, Thomas Scheibitz, Stefan Busemann',

0 commit comments

Comments
 (0)