mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 02:56:26 +03:00
Reduced number of env vars
This commit is contained in:
@@ -14,7 +14,7 @@ services:
|
||||
app.event_store.pdo_connection.mysql:
|
||||
class: \PDO
|
||||
arguments:
|
||||
- 'mysql:host=%env(MYSQL_HOST)%;dbname=%env(MYSQL_DBNAME)%'
|
||||
- '%env(MYSQL_DSN)%'
|
||||
- '%env(MYSQL_USER)%'
|
||||
- '%env(MYSQL_PASSWORD)%'
|
||||
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
"scripts/": "%CONFIG_DIR%/scripts/"
|
||||
},
|
||||
"env": {
|
||||
"MYSQL_HOST": "127.0.0.1",
|
||||
"MYSQL_DBNAME": "event_streams",
|
||||
"MYSQL_DSN": "mysql:host=127.0.0.1;dbname=event_streams",
|
||||
"MYSQL_USER": "user",
|
||||
"MYSQL_PASSWORD": "password"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user