diff --git a/composer.json b/composer.json index 34cf244..9911eb0 100644 --- a/composer.json +++ b/composer.json @@ -11,11 +11,11 @@ } ], "require": { - "typo3/cms-backend": "^8.7 || ^9.5 || ^10.4 || 11.*.*@dev", - "typo3/cms-core": "^8.7 || ^9.5 || ^10.4 || 11.*.*@dev", - "typo3/cms-extbase": "^8.7 || ^9.5 || ^10.4 || 11.*.*@dev", - "typo3/cms-frontend": "^8.7 || ^9.5 || ^10.4 || 11.*.*@dev", - "typo3/cms-fluid": "^8.7 || ^9.5 || ^10.4 || 11.*.*@dev", + "typo3/cms-backend": "^8.7 || ^9.5 || ^10.4 || ^11.5", + "typo3/cms-core": "^8.7 || ^9.5 || ^10.4 || ^11.5", + "typo3/cms-extbase": "^8.7 || ^9.5 || ^10.4 || ^11.5", + "typo3/cms-frontend": "^8.7 || ^9.5 || ^10.4 || ^11.5", + "typo3/cms-fluid": "^8.7 || ^9.5 || ^10.4 || ^11.5", "hubspot/hubspot-php": "^1.0 || ^3.0" }, "require-dev": { diff --git a/ext_tables.php b/ext_tables.php index db98151..e1adf35 100644 --- a/ext_tables.php +++ b/ext_tables.php @@ -14,18 +14,28 @@ call_user_func( function () { if (TYPO3_MODE === 'BE') { + + $backendController = \T3G\Hubspot\Controller\BackendController::class; + $extensionName = 'hubspot'; + if (\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Information\Typo3Version::class) + ->getMajorVersion() < 10) { + $backendController = 'Backend'; + $extensionName = 'T3G.hubspot'; + } + + \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( - 'T3G.hubspot', + $extensionName, 'hubspotForm', 'Hubspot Form' ); \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( - 'T3G.Hubspot', + $extensionName, 'tools', 'tx_Hubspot', 'top', [ - 'Backend' => 'index, forms, hubspotForm, ctas' + $backendController => 'index, forms, hubspotForm, ctas' ], [ 'access' => 'admin',