A simple helper that allows setting service parameters by environment variables.
Usage
1. Install as usual.
2. Set environment variables following this pattern:
DRUPAL_SERVICE_{ variable }={ value }
The variable name following the same rules:
- Casing is kept as is
- '__' is replaced by dots (".").
- '___' is used for setting nested array structures
Usage examples
Setting Drupal's CORS values:
DRUPAL_SERVICE_cors__config___enabled=1
DRUPAL_SERVICE_cors__config___allowedOrigins___0=http://www.example.com
Setting a cookie domain
DRUPAL_SERVICE_session__storage__options___cookie_domain=".example.com"
Contribute
- Reach out at #drunomics-contribute @ the Drupal Slack!
Short name
services_env_parameter
Supporting organizations
Initial development.