Skip to content

Commit c60a234

Browse files
committed
minor #8851 Add "url" key in dbal configuration (yordandv, weaverryan)
This PR was submitted for the 4.0 branch but it was merged into the 2.7 branch instead (closes #8851). Discussion ---------- Add "url" key in dbal configuration "url" key exist in default doctrine configuration created from flex (doctrine.yaml) Commits ------- 577edd3 adding note to config aa3f53d Add "url" key in dbal configuration
2 parents 86fb2ac + 577edd3 commit c60a234

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reference/configuration/doctrine.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ The following block shows all possible configuration keys:
293293
user: user
294294
password: secret
295295
driver: pdo_mysql
296+
# if the url option is specified, it will override the above config
297+
url: mysql://db_user:db_password@127.0.0.1:3306/db_name
296298
# the DBAL driverClass option
297299
driver_class: MyNamespace\MyDriverImpl
298300
# the DBAL driverOptions option

0 commit comments

Comments
 (0)