From 7350036c7fbeef0eccd39d22ea07622335665646 Mon Sep 17 00:00:00 2001
From: Wouter Wolters <typo3@wouterwolters.nl>
Date: Tue, 21 Jul 2015 17:34:34 +0200
Subject: [PATCH] [TASK] EXT:lowlevel Uniform extension directory structure

Move dbint and config to Modules/ directory
Move language files to Resources/Private/Language/
Move CLI scripts to Resource/PHP/

Resolves: #68435
Releases: master
Change-Id: I8b512fb421ee6133b8ecf02a09f3121dff84ff9d
Reviewed-on: http://review.typo3.org/41784
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 .../{config => Modules/Configuration}/index.php      |  0
 .../{dbint => Modules/DatabaseIntegrity}/index.php   |  0
 .../lowlevel/{ => Resources/PHP}/admin_cli.php       |  0
 .../{dbint/cli => Resources/PHP}/cleaner_cli.php     |  0
 .../{dbint/cli => Resources/PHP}/refindex_cli.php    |  0
 .../Private/Language}/locallang_mod.xlf              |  0
 .../Language/locallang_mod_configuration.xlf}        |  0
 typo3/sysext/lowlevel/ext_localconf.php              |  6 +++---
 typo3/sysext/lowlevel/ext_tables.php                 | 12 ++++++------
 9 files changed, 9 insertions(+), 9 deletions(-)
 rename typo3/sysext/lowlevel/{config => Modules/Configuration}/index.php (100%)
 rename typo3/sysext/lowlevel/{dbint => Modules/DatabaseIntegrity}/index.php (100%)
 rename typo3/sysext/lowlevel/{ => Resources/PHP}/admin_cli.php (100%)
 rename typo3/sysext/lowlevel/{dbint/cli => Resources/PHP}/cleaner_cli.php (100%)
 rename typo3/sysext/lowlevel/{dbint/cli => Resources/PHP}/refindex_cli.php (100%)
 rename typo3/sysext/lowlevel/{dbint => Resources/Private/Language}/locallang_mod.xlf (100%)
 rename typo3/sysext/lowlevel/{config/locallang_mod.xlf => Resources/Private/Language/locallang_mod_configuration.xlf} (100%)

diff --git a/typo3/sysext/lowlevel/config/index.php b/typo3/sysext/lowlevel/Modules/Configuration/index.php
similarity index 100%
rename from typo3/sysext/lowlevel/config/index.php
rename to typo3/sysext/lowlevel/Modules/Configuration/index.php
diff --git a/typo3/sysext/lowlevel/dbint/index.php b/typo3/sysext/lowlevel/Modules/DatabaseIntegrity/index.php
similarity index 100%
rename from typo3/sysext/lowlevel/dbint/index.php
rename to typo3/sysext/lowlevel/Modules/DatabaseIntegrity/index.php
diff --git a/typo3/sysext/lowlevel/admin_cli.php b/typo3/sysext/lowlevel/Resources/PHP/admin_cli.php
similarity index 100%
rename from typo3/sysext/lowlevel/admin_cli.php
rename to typo3/sysext/lowlevel/Resources/PHP/admin_cli.php
diff --git a/typo3/sysext/lowlevel/dbint/cli/cleaner_cli.php b/typo3/sysext/lowlevel/Resources/PHP/cleaner_cli.php
similarity index 100%
rename from typo3/sysext/lowlevel/dbint/cli/cleaner_cli.php
rename to typo3/sysext/lowlevel/Resources/PHP/cleaner_cli.php
diff --git a/typo3/sysext/lowlevel/dbint/cli/refindex_cli.php b/typo3/sysext/lowlevel/Resources/PHP/refindex_cli.php
similarity index 100%
rename from typo3/sysext/lowlevel/dbint/cli/refindex_cli.php
rename to typo3/sysext/lowlevel/Resources/PHP/refindex_cli.php
diff --git a/typo3/sysext/lowlevel/dbint/locallang_mod.xlf b/typo3/sysext/lowlevel/Resources/Private/Language/locallang_mod.xlf
similarity index 100%
rename from typo3/sysext/lowlevel/dbint/locallang_mod.xlf
rename to typo3/sysext/lowlevel/Resources/Private/Language/locallang_mod.xlf
diff --git a/typo3/sysext/lowlevel/config/locallang_mod.xlf b/typo3/sysext/lowlevel/Resources/Private/Language/locallang_mod_configuration.xlf
similarity index 100%
rename from typo3/sysext/lowlevel/config/locallang_mod.xlf
rename to typo3/sysext/lowlevel/Resources/Private/Language/locallang_mod_configuration.xlf
diff --git a/typo3/sysext/lowlevel/ext_localconf.php b/typo3/sysext/lowlevel/ext_localconf.php
index 01f7589143de..4d9e0f3db659 100644
--- a/typo3/sysext/lowlevel/ext_localconf.php
+++ b/typo3/sysext/lowlevel/ext_localconf.php
@@ -3,9 +3,9 @@ defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
 	// Setting up scripts that can be run from the cli_dispatch.phpsh script.
-	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_refindex'] = array('EXT:lowlevel/dbint/cli/refindex_cli.php', '_CLI_lowlevel');
-	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_cleaner'] = array('EXT:lowlevel/dbint/cli/cleaner_cli.php', '_CLI_lowlevel');
-	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_admin'] = array('EXT:lowlevel/admin_cli.php', '_CLI_lowlevel');
+	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_refindex'] = array('EXT:lowlevel/Resources/PHP/refindex_cli.php', '_CLI_lowlevel');
+	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_cleaner'] = array('EXT:lowlevel/Resources/PHP/cleaner_cli.php', '_CLI_lowlevel');
+	$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_admin'] = array('EXT:lowlevel/Resources/PHP/admin_cli.php', '_CLI_lowlevel');
 	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules']['missing_files'] = array('TYPO3\\CMS\\Lowlevel\\MissingFilesCommand');
 	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules']['missing_relations'] = array('TYPO3\\CMS\\Lowlevel\\MissingRelationsCommand');
 	$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules']['double_files'] = array('TYPO3\\CMS\\Lowlevel\\DoubleFilesCommand');
diff --git a/typo3/sysext/lowlevel/ext_tables.php b/typo3/sysext/lowlevel/ext_tables.php
index 83a7046be3d0..a4251685159b 100644
--- a/typo3/sysext/lowlevel/ext_tables.php
+++ b/typo3/sysext/lowlevel/ext_tables.php
@@ -6,7 +6,7 @@ if (TYPO3_MODE === 'BE') {
 		'system',
 		'dbint',
 		'',
-		\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'dbint/',
+		'EXT:lowlevel/Modules/DatabaseIntegrity/',
 		array(
 			'script' => '_DISPATCH',
 			'access' => 'admin',
@@ -14,9 +14,9 @@ if (TYPO3_MODE === 'BE') {
 			'workspaces' => 'online',
 			'labels' => array(
 				'tabs_images' => array(
-					'tab' => '../Resources/Public/Icons/module-dbint.svg',
+					'tab' => 'EXT:lowlevel/Resources/Public/Icons/module-dbint.svg',
 				),
-				'll_ref' => 'LLL:EXT:lowlevel/dbint/locallang_mod.xlf',
+				'll_ref' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod.xlf',
 			),
 		)
 	);
@@ -24,7 +24,7 @@ if (TYPO3_MODE === 'BE') {
 		'system',
 		'config',
 		'',
-		\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'config/',
+		'EXT:lowlevel/Modules/Configuration/',
 		array(
 			'script' => '_DISPATCH',
 			'access' => 'admin',
@@ -32,9 +32,9 @@ if (TYPO3_MODE === 'BE') {
 			'workspaces' => 'online',
 			'labels' => array(
 				'tabs_images' => array(
-					'tab' => '../Resources/Public/Icons/module-config.svg',
+					'tab' => 'EXT:lowlevel/Resources/Public/Icons/module-config.svg',
 				),
-				'll_ref' => 'LLL:EXT:lowlevel/config/locallang_mod.xlf',
+				'll_ref' => 'LLL:EXT:lowlevel/Resources/Private/Language/locallang_mod_configuration.xlf',
 			),
 		)
 	);
-- 
GitLab