TYPO3 / CmsComposerInstallers

TYPO3 CMS Composer Installer
GNU General Public License v2.0
58 stars 39 forks source link

Hardcoded extension key in ext_emconf.php #49

Closed mischka closed 8 years ago

mischka commented 8 years ago

If the extension name is hardcoded in the ext_emconf.php file, the getEmConfMetaData method throws an Undefined index exception. Because the access via $EM_CONF[$_EXTKEY] won't work.

hardcoded extkey

$EM_CONF['my_ext'] = array(
   ...
);

extkey via variable

$EM_CONF[$_EXTKEY] = array(
   ...
);

The Problem is: $_EXTKEY = basename($path); this doesn't work with hardcoded extkeys.

helhum commented 8 years ago

The Problem is: $_EXTKEY = basename($path); this doesn't work with hardcoded extkeys.

Sorry, but the problem is hardcoded extkeys in ext_emconf.php. This needs to be fixed in the extension, not in the composer installer.