somebdyelse/typo3-symfony-env-vars

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

Installs: 1 059

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:typo3-cms-extension

v2.0.0 2024-04-15 15:33 UTC

This package is auto-updated.

Last update: 2024-04-15 15:37:57 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)%'