[TASK] Move TypoScript inclusion into ext_localconf 99/56799/2
authorBenni Mack <benni@typo3.org>
Wed, 25 Apr 2018 07:04:15 +0000 (09:04 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 25 Apr 2018 07:20:34 +0000 (09:20 +0200)
The Form configuration is now included inline instead
of a separate file.

Resolves: #84861
Releases: master
Change-Id: I06b0ca7b0f650c6701069ab3f11005e78b48d67a
Reviewed-on: https://review.typo3.org/56799
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/form/ext_localconf.php
typo3/sysext/form/ext_typoscript_setup.txt [deleted file]

index 2dba381..bdb4d7d 100644 (file)
@@ -20,6 +20,24 @@ call_user_func(function () {
         '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:form/Configuration/PageTS/modWizards.ts">'
     );
 
+    // Add module configuration
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(
+        'module.tx_form {
+    settings {
+        yamlConfigurations {
+            10 = EXT:form/Configuration/Yaml/BaseSetup.yaml
+            20 = EXT:form/Configuration/Yaml/FormEditorSetup.yaml
+            30 = EXT:form/Configuration/Yaml/FormEngineSetup.yaml
+        }
+    }
+    view {
+        templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
+        partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
+        layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
+    }
+}'
+    );
+
     $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/form']['afterSubmit'][1489772699]
         = \TYPO3\CMS\Form\Hooks\FormElementHooks::class;
 
diff --git a/typo3/sysext/form/ext_typoscript_setup.txt b/typo3/sysext/form/ext_typoscript_setup.txt
deleted file mode 100644 (file)
index ec0c566..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-module.tx_form {
-    settings {
-        yamlConfigurations {
-            10 = EXT:form/Configuration/Yaml/BaseSetup.yaml
-            20 = EXT:form/Configuration/Yaml/FormEditorSetup.yaml
-            30 = EXT:form/Configuration/Yaml/FormEngineSetup.yaml
-        }
-    }
-    view {
-        templateRootPaths.10 = EXT:form/Resources/Private/Backend/Templates/
-        partialRootPaths.10 = EXT:form/Resources/Private/Backend/Partials/
-        layoutRootPaths.10 = EXT:form/Resources/Private/Backend/Layouts/
-    }
-}