It is not necessary to check for the TYPO3 version when using class alias in configurePlugin: the class alias can be used for TYPO3 v10 and v11 and the extension is not available for below v10
if ($typo3Version->getMajorVersion() >= 11) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'rss_display',
'Pi1',
[\Fab\RssDisplay\Controller\FeedController::class => 'show'],
$pluginType === 'USER_INT' ? [\Fab\RssDisplay\Controller\FeedController::class => 'show'] : [],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
} else {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Fab.rss_display',
'Pi1',
['Feed' => 'show'],
$pluginType === 'USER_INT' ? ['Feed' => 'show'] : []
);
}
It is not necessary to check for the TYPO3 version when using class alias in configurePlugin: the class alias can be used for TYPO3 v10 and v11 and the extension is not available for below v10
rss_display/ext_localconf.php
Line 29 in 2a81979