[FEATURE] Add symfony dependency injection for core and extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index d354666..cf8220c
@@ -1,19 +1,31 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE')  {
-       t3lib_extMgm::addModule('tools','dbint','',t3lib_extMgm::extPath($_EXTKEY).'dbint/');
-       t3lib_extMgm::addModule('tools','config','',t3lib_extMgm::extPath($_EXTKEY).'config/');
-
-/*
-       t3lib_extMgm::insertModuleFunction(
-               'web_func',
-               'tx_lowlevel_cleaner',
-               t3lib_extMgm::extPath($_EXTKEY).'class.tx_lowlevel_cleaner.php',
-               'Cleaner',
-               'function',
-               'online'
-       );
-*/
-}
-?>
\ No newline at end of file
+\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'
+    ]
+);