Commit cae3f451 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] Use controller classes when registering plugins/modules

parent c278fd17
......@@ -4,47 +4,51 @@ if (!defined('TYPO3_MODE')) {
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'T3o.' . $_EXTKEY,
'Typo3Roadmap',
'Roadmap',
[
'Roadmap' => 'roadmap',
\T3o\Typo3Roadmap\Controller\RoadmapController::class => 'roadmap',
],
[
'Roadmap' => 'roadmap',
]
\T3o\Typo3Roadmap\Controller\RoadmapController::class => 'roadmap',
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'T3o.' . $_EXTKEY,
'Typo3Roadmap',
'Features',
[
'Feature' => 'listFeatures'
\T3o\Typo3Roadmap\Controller\FeatureController::class => 'listFeatures'
],
[
'Feature' => ''
]
\T3o\Typo3Roadmap\Controller\FeatureController::class => ''
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'T3o.' . $_EXTKEY,
'Typo3Roadmap',
'Featureshowrecords',
[
'Feature' => 'showFeatureRecords'
\T3o\Typo3Roadmap\Controller\FeatureController::class => 'showFeatureRecords'
],
[
'Feature' => ''
]
\T3o\Typo3Roadmap\Controller\FeatureController::class => ''
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'T3o.' . $_EXTKEY,
'Typo3Roadmap',
'Featureareashowrecords',
[
'Feature' => 'showFeatureAreaRecords'
\T3o\Typo3Roadmap\Controller\FeatureController::class => 'showFeatureAreaRecords'
],
[
'Feature' => ''
]
\T3o\Typo3Roadmap\Controller\FeatureController::class => ''
],
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
......
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