]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Remove SMTP configuration environment overrides
authorMathieu Bruyen <code@mais-h.eu>
Thu, 25 Feb 2016 08:19:12 +0000 (09:19 +0100)
committerNicolas LÅ“uillet <nicolas@loeuillet.org>
Tue, 29 Mar 2016 11:44:12 +0000 (13:44 +0200)
commit0bb5669cf602aa5aa2aae76299328827a1c290c5
treeb410847779927f60bf2396252b56d757c0e451aa
parentb63752652485b1f62679db002cba945c46010367
Remove SMTP configuration environment overrides

SMTP configuration has been added in #1518 to use ParameterHandle's
env-map. But Symfony actually has a native way of allowing parameters to
be overriden from environment so rather than having to define a mapping
for each possible parameter, users can define any override in
parameters.yml:

> parameters:
>     database_host: %WALLABAG_DB_HOST%

and define an environment variable SYMFONY__WALLABAG_DB_HOST.

Links:
env-map: https://github.com/Incenteev/ParameterHandler#using-environment-variables-to-set-the-parameters
Symfony external parameters: http://symfony.com/doc/current/cookbook/configuration/external_parameters.html
composer.json