This package allows to use the Symfony environment variable processor in TYPO3 configuration files.
# public/typo3conf/ext/mysite/Configuration/Services.yaml
parameters:
default_host: www.example.com.test
env(TYPO3_ENABLE_LANGUAGE_DE): true
env(TYPO3_ENABLE_LANGUAGE_FR): false
# config/sites/mysite/config.yaml
base: 'https://%env(default:default_host:TYPO3_HOST)%/'
languages:
-
title: 'de'
languageId: 1
enabled: '%env(bool:TYPO3_ENABLE_LANGUAGE_DE)%'
…
-
title: 'fr'
languageId: 2
enabled: '%env(bool:TYPO3_ENABLE_LANGUAGE_FR)%'
…