somebdyelse / typo3-symfony-env-vars
TYPO3 Extension that replaces the stock environment variable processor by Symfony's
Installs: 1 623
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Type:typo3-cms-extension
Requires
- symfony/dependency-injection: ^5.4 || ^6.3
- typo3/cms-core: ^11.5.0 || ^12.4
This package is auto-updated.
Last update: 2024-12-15 16:57:20 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)%' …