Commit 7f8ba7be authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Fix TYPO3 versions, correct namespace and use correct parameter for icon

parent 41b7e262
<?php
namespace SpoonerWeb\DeployerInformation\ToolbarItems;
namespace SpoonerWeb\DeployerInformation\ToolbarItem;
/*
* This file is part of a TYPO3 extension.
......@@ -36,7 +36,7 @@ class LastDeployInformation
$systemInformationToolbarItem->addSystemInformation(
'Last Deployment',
strftime('%a, %x %H:%M', $lastReleaseDateTime->getTimestamp()),
GeneralUtility::makeInstance(IconFactory::class)->getIcon('module-tools', Icon::SIZE_SMALL)->render()
'actions-cloud'
);
}
}
......
......@@ -19,7 +19,7 @@
"type": "typo3-cms-extension",
"require": {
"php": "^7.2",
"typo3/cms-core": "^8.7 || ^9.5 || ^10"
"typo3/cms-core": "^9.5 || ^10"
},
"autoload": {
"psr-4": {
......
......@@ -12,7 +12,7 @@ $EM_CONF[$_EXTKEY] = [
'version' => '1.0.0',
'constraints' => [
'depends' => [
'typo3' => '8.7.0-10.99.99',
'typo3' => '9.5.0-10.99.99',
],
],
];
<?php
defined('TYPO3_MODE') || die('Access denied.');
// Register
call_user_func(function () {
......@@ -7,7 +8,7 @@ call_user_func(function () {
->connect(
\TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class,
'getSystemInformation',
\SpoonerWeb\DeployerInformation\ToolbarItems\LastDeployInformation::class,
\SpoonerWeb\DeployerInformation\ToolbarItem\LastDeployInformation::class,
'addLastDeployInformation'
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment