I got one project which uses helhum/typo3-config-handling. I therefore needed to adjust the config to return the final result, as the package expects an array instead of globals. It also loads config multiple times. I therefore needed to remove require_once and replace by require. But some code can't be required multiple times and was moved to dedicated files with require_once. This package prevents writing back silent upgrades, I therefore needed to clean up the very old configs for TYPO3 < 10.
28 lines
844 B
PHP
28 lines
844 B
PHP
<?php
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['imageoptimizer'] = [
|
|
'debug' => '0',
|
|
'gifBinary' => 'gifsicle',
|
|
'gifCheck' => 'gif',
|
|
'gifOnProcessing' => '0',
|
|
'gifOnUpload' => '0',
|
|
'gifParametersOnProcessing' => '--batch -O2 %s',
|
|
'gifParametersOnUpload' => '--batch -O2 %s',
|
|
'jpgBinary' => 'jpegoptim',
|
|
'jpgCheck' => 'jpg',
|
|
'jpgOnProcessing' => '0',
|
|
'jpgOnUpload' => '0',
|
|
'jpgParametersOnProcessing' => '--strip-all %s',
|
|
'jpgParametersOnUpload' => '--strip-all %s',
|
|
'pngBinary' => 'optipng',
|
|
'pngCheck' => 'png',
|
|
'pngOnProcessing' => '0',
|
|
'pngOnUpload' => '0',
|
|
'pngParametersOnProcessing' => '-o2 %s',
|
|
'pngParametersOnUpload' => '-o2 %s',
|
|
'svgBinary' => 'svgo',
|
|
'svgCheck' => 'svg',
|
|
'svgOnUpload' => '0',
|
|
'svgParametersOnUpload' => '--pretty %s',
|
|
];
|