[TYPO3-english] t3lib_install removed in typo3 6.2 beta 7
Christian Kuhn
lolli at schwarzbu.ch
Tue Mar 18 20:19:19 CET 2014
Hey.
On 03/18/2014 11:51 AM, PIT Solutions wrote:
> trying to create an instance of 't3lib_install' And if my investigation
> is correct , t3lib_install is removed from typo3 core.
t3lib_install was removed. There was no way to keep it since the install
tool was rewritten from scratch in 6.2, hacking this monster class into
happy little pieces.
> So can any one of you guys please help me to find out the replacement for this class .
> $instObj = t3lib_div::makeInstance('t3lib_install');
> $instObj->allowUpdateLocalConf = 1;
> $instObj->updateIdentity = 'Snowbabel';
>
> // Get lines from localconf file
> $lines = $instObj->writeToLocalconf_control();
>
> $instObj->setValueInLocalconfFile($lines,
> '$TYPO3_CONF_VARS[\'EXT\'][\'extConf\'][\'xxxxxx\']',
> serialize($LocalconfValues));
> $instObj->writeToLocalconf_control($lines);
Usually extensions should use ext_conf_template.txt to configure
extensions settings with the extension manager. If that can not be done
for whatever reason, \TYPO3\CMS\Core\Configuration\ConfigurationManager
handles LocalConfiguration.php values since 6.0.
Regards
Christian
More information about the TYPO3-english
mailing list