mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-29 20:41:03 +00:00
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
This commit is contained in:
parent
b637526524
commit
0bb5669cf6
1 changed files with 2 additions and 11 deletions
|
@ -90,11 +90,8 @@
|
||||||
"fabpot/php-cs-fixer": "~1.9"
|
"fabpot/php-cs-fixer": "~1.9"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build-parameters": [
|
|
||||||
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters"
|
|
||||||
],
|
|
||||||
"post-cmd": [
|
"post-cmd": [
|
||||||
"@build-parameters",
|
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
|
||||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
|
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
|
||||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
|
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
|
||||||
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
|
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
|
||||||
|
@ -116,13 +113,7 @@
|
||||||
"symfony-tests-dir": "tests",
|
"symfony-tests-dir": "tests",
|
||||||
"symfony-assets-install": "relative",
|
"symfony-assets-install": "relative",
|
||||||
"incenteev-parameters": {
|
"incenteev-parameters": {
|
||||||
"file": "app/config/parameters.yml",
|
"file": "app/config/parameters.yml"
|
||||||
"env-map": {
|
|
||||||
"mailer_host": "WALLABAG_MAILER_HOST",
|
|
||||||
"mailer_user": "WALLABAG_MAILER_USER",
|
|
||||||
"mailer_password": "WALLABAG_MAILER_PASSWORD",
|
|
||||||
"secret": "WALLABAG_SECRET"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|
Loading…
Reference in a new issue