[TASK] Document needed changes if you remove conf.php 45/36745/3
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 8 Feb 2015 15:24:18 +0000 (16:24 +0100)
committerMathias Schreiber <mathias.schreiber@wmdb.de>
Mon, 9 Feb 2015 17:37:41 +0000 (18:37 +0100)
Resolves: #64921
Releases: master
Change-Id: Id1f1d8ccfcd3d8fafb8faa338ca7e4b09527fe36
Reviewed-on: http://review.typo3.org/36745
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Frederic Gaus <gaus@flagbit.de>
Tested-by: Frederic Gaus <gaus@flagbit.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
typo3/sysext/core/Documentation/Changelog/master/Feature-64921-FlexibleSubmoduleConfiguration.rst [new file with mode: 0644]

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-64921-FlexibleSubmoduleConfiguration.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-64921-FlexibleSubmoduleConfiguration.rst
new file mode 100644 (file)
index 0000000..fd4dbdb
--- /dev/null
@@ -0,0 +1,33 @@
+=========================================================================
+Feature: #64921 - Needed changes for flexible configuration of submodules
+=========================================================================
+
+Description
+===========
+
+The additional configuration for submodules can now be configured with an extra
+parameter in ``ExtensionManagementUtility::addModule()`` since https://forge.typo3.org/issues/62880.
+This makes it possible to remove the conf.php file by setting the configuration within ``ExtensionManagementUtility::addModule()`` in ext_tables.php.
+
+When doing so you might have some issues with $this->MCONF not being set. This happens if your backend module extends
+from ``\TYPO3\CMS\Backend\Module\BaseScriptClass``.
+
+To fix this problem you need to add the module name in $this->MCONF.
+
+.. code-block:: php
+
+       /**
+        * The name of the module
+        *
+        * @var string
+        */
+       protected $moduleName = 'file_list';
+
+       /**
+        * Constructor
+        */
+       public function __construct() {
+               $this->MCONF = array(
+                       'name' => $this->moduleName
+               );
+       }
\ No newline at end of file