Issue Bug Rejected

#59432setLocalConfigurationValueByPath() writes LocalConfiguration.php on each request

Viktor Livakivskyi 06/10/14, 10:55 updated 11/17/16, 13:04

Description

Hi,

Since TYPO3 6.0 it is recommended to not use $GLOBALS[‘TYPO3_CONF_VARS’], but TYPO3\CMS\Core\Configuration\ConfigurationManager to set and get values from LocalConfiguration.php (and AdditionalCOnfiguration.php).

However, I’ve found one strange behaviour of ConfigurationManager. Whenever someone uses setLocalConfigurationValueByPath() or setLocalConfigurationValuesByPathValuePairs() ConfigurationManager implicitly writes LocalConfiguration.php. Meaning, that if setLocalConfigurationValueByPath() is invoked from ext_localconf.php, this will cause LocalConfigration.php writes on each request.

Isn’t it possible to do a pre-check in set() methods, that option is already set to desired value?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.