[TASK] Remove extRelPath from module configuration 19/48919/2
authorBenni Mack <benni@typo3.org>
Tue, 12 Jul 2016 09:09:07 +0000 (11:09 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 20 Jul 2016 07:24:59 +0000 (09:24 +0200)
The module configuration sets the extRelPath but is never evaluated
anymore since 8.0 and the streamlined ModuleLoader functionality.

Resolves: #77058
Releases: master
Change-Id: Iea16d5cf493bd7e584722d494104a515cbc01cf6
Reviewed-on: https://review.typo3.org/48919
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php

index db3bf75..52c73be 100644 (file)
@@ -836,13 +836,11 @@ class ExtensionManagementUtility
         if (empty($extensionName)) {
             throw new \InvalidArgumentException('The extension name must not be empty', 1325938973);
         }
-        $extensionKey = GeneralUtility::camelCaseToLowerCaseUnderscored($extensionName);
         $extensionName = str_replace(' ', '', ucwords(str_replace('_', ' ', $extensionName)));
         $defaultModuleConfiguration = array(
             'access' => 'admin',
-            'icon' => self::extRelPath('backend') . 'Resources/Public/Images/Logo.png',
+            'icon' => 'EXT:backend/Resources/Public/Images/Logo.png',
             'labels' => '',
-            'extRelPath' => self::extRelPath($extensionKey) . 'Classes/'
         );
         // Add mandatory parameter to use new pagetree
         if ($mainModuleName === 'web') {
index c818326..379ceaa 100644 (file)
@@ -169,13 +169,12 @@ tt_content.' . $pluginSignature . ' {
                 self::checkVendorNameFormat($vendorName, $extensionName);
             }
         }
-        $extensionKey = \TYPO3\CMS\Core\Utility\GeneralUtility::camelCaseToLowerCaseUnderscored($extensionName);
+
         $extensionName = str_replace(' ', '', ucwords(str_replace('_', ' ', $extensionName)));
         $defaultModuleConfiguration = array(
             'access' => 'admin',
             'icon' => 'EXT:extbase/ext_icon.png',
-            'labels' => '',
-            'extRelPath' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($extensionKey) . 'Classes/'
+            'labels' => ''
         );
         if ($mainModuleName !== '' && !array_key_exists($mainModuleName, $GLOBALS['TBE_MODULES'])) {
             $mainModuleName = $extensionName . \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($mainModuleName);