[FEATURE] Add symfony dependency injection for core and extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / ext_tables.php
index 83a7046..cf8220c 100644 (file)
@@ -1,41 +1,31 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE === 'BE') {
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
-               'system',
-               'dbint',
-               '',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'dbint/',
-               array(
-                       'script' => '_DISPATCH',
-                       'access' => 'admin',
-                       'name' => 'system_dbint',
-                       'workspaces' => 'online',
-                       'labels' => array(
-                               'tabs_images' => array(
-                                       'tab' => '../Resources/Public/Icons/module-dbint.svg',
-                               ),
-                               'll_ref' => 'LLL:EXT:lowlevel/dbint/locallang_mod.xlf',
-                       ),
-               )
-       );
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
-               'system',
-               'config',
-               '',
-               \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'config/',
-               array(
-                       'script' => '_DISPATCH',
-                       'access' => 'admin',
-                       'name' => 'system_config',
-                       'workspaces' => 'online',
-                       'labels' => array(
-                               'tabs_images' => array(
-                                       'tab' => '../Resources/Public/Icons/module-config.svg',
-                               ),
-                               'll_ref' => 'LLL:EXT:lowlevel/config/locallang_mod.xlf',
-                       ),
-               )
-       );
-}
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+    'system',
+    'dbint',
+    '',
+    '',
+    [
+        'routeTarget' => \TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController::class . '::mainAction',
+        'access' => 'admin',
+        'name' => 'system_dbint',
+        'workspaces' => 'online',
+        'icon' => 'EXT:lowlevel/Resources/Public/Icons/module-dbint.svg',
+        'labels' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf'
+    ]
+);
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
+    'system',
+    'config',
+    '',
+    '',
+    [
+        'routeTarget' => \TYPO3\CMS\Lowlevel\Controller\ConfigurationController::class . '::mainAction',
+        'access' => 'admin',
+        'name' => 'system_config',
+        'workspaces' => 'online',
+        'icon' => 'EXT:lowlevel/Resources/Public/Icons/module-config.svg',
+        'labels' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod_configuration.xlf'
+    ]
+);