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 example - configuring CORS:

For example the following environment variables would set Drupal's CORS values: