Skip to content

Commit dc6ae92

Browse files
committed
Updated the help note about database config
1 parent a1d55d0 commit dc6ae92

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

app/config/config.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,28 @@ twig:
6161
# Doctrine Configuration (used to access databases and manipulate their information)
6262
doctrine:
6363
dbal:
64-
# instead of configuring the database access options in this file, we pull
65-
# them from the app/config/parameters.yml file. The reason is that config.yml
66-
# stores options that change the application behavior and parameters.yml
67-
# stores options that change from one server to another
64+
# if you don't want to use SQLite, comment the two following lines
6865
driver: "pdo_sqlite"
69-
# temp workaround for https://github.com/doctrine/dbal/issues/1106: define DB path here
7066
path: "%kernel.root_dir%/data/blog.sqlite"
67+
# uncomment the following lines to use a database different than SQLite
68+
# driver: pdo_mysql
69+
# host: "%database_host%"
70+
# port: "%database_port%"
71+
# dbname: "%database_name%"
72+
# user: "%database_user%"
73+
# password: "%database_password%"
74+
# charset: UTF8
7175

7276
orm:
7377
auto_generate_proxy_classes: "%kernel.debug%"
7478
auto_mapping: true
7579

7680
# Swiftmailer Configuration (used to send emails)
81+
# instead of configuring the mailer credentials in this file, we pull
82+
# them from the app/config/parameters.yml file. The reason is that config.yml
83+
# stores options that change the application behavior and parameters.yml
84+
# stores options that change from one server to another
85+
#
7786
# swiftmailer:
7887
# transport: "%mailer_transport%"
7988
# host: "%mailer_host%"

0 commit comments

Comments
 (0)