[TYPO3-core] RFC #16215: Allow array as localconf.php configuration values

Xavier Perseguers typo3 at perseguers.ch
Tue Nov 2 11:38:17 CET 2010


Hi,

This is an SVN patch request.

Type: feature

Bugtracker reference:
http://bugs.typo3.org/view.php?id=16215

Branches: trunk

Problem:
Currently t3lib_install lacks a way to store an array as configuration 
value.

Having this method in Core would allow DBAL to use native methods 
instead of writing localconf.php itself.

Further information:
Latest version of patch (in DBAL) 
http://bugs.typo3.org/view.php?id=15755 uses this method

Further information #2:
Once it gets committed, I'll make a small refactoring in DBAL when using 
1-2-3 wizard to prevent such configuration line to be written (as it is 
currently):

$TYPO3_CONF_VARS['EXTCONF']['dbal']['handlerCfg'] = array('_DEFAULT' => 
array('type' => 'adodb','config' => array('driver' => 
'oci8','driverOptions' => array('connectSID' => TRUE))));

To have this instead:

$TYPO3_CONF_VARS['EXTCONF']['dbal']['handlerCfg'] = array(
	'_DEFAULT' => array(
		'type' => 'adodb',
		'config' => array(
			'driver' => 'oci8',
			'driverOptions' => array(
				'connectSID' => TRUE,
			)
		)
	)
);

How to test:
See that EM still can properly change your localconf.php

Cheers
Xavier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16215.diff
Type: text/x-diff
Size: 7841 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101102/e1a298bb/attachment.diff>


More information about the TYPO3-team-core mailing list