somebdyelse/typo3-symfony-env-vars

TYPO3 Extension that replaces the stock environment variable processor by Symfony's

Installs: 260

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v1.0.0 2023-01-15 11:46 UTC

This package is auto-updated.

Last update: 2023-05-15 12:37:08 UTC


README

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