variabilisation des paramètres du serveur de bdd

This commit is contained in:
seraph 2020-04-02 19:26:43 +02:00
parent c2995e9799
commit cfed4f0fbc
2 changed files with 4 additions and 2 deletions

2
.env
View File

@ -18,6 +18,8 @@ APP_ENV=dev
APP_SECRET=597b0529ac702d27dcb9089f7e69c362
# Base website url, should contain https:// and having no trailing slash. example: BASE_URL=https://framadate.org
BASE_URL=http://localhost/
DATABASE_DRIVER=pdo_mysql
DATABASE_SERVER_VERSION=5.7
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###

View File

@ -3,8 +3,8 @@ doctrine:
# configure these for your database server
# use postgresql for PostgreSQL
# use sqlite for SQLite
driver: 'mysql'
server_version: '5.7'
driver: '%env(resolve:DATABASE_DRIVER)%'
server_version: '%env(resolve:DATABASE_SERVER_VERSION)%'
# only needed for MySQL
charset: utf8mb4