Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 730 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 730 Bytes

Symfony Environment Variables

This package allows to use the Symfony environment variable processor in TYPO3 configuration files.

Sample usage

# 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)%'