File tree 4 files changed +4
-27
lines changed
4 files changed +4
-27
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,6 @@ doctrine:
62
62
dbal :
63
63
# if you don't want to use SQLite, change the URL in parameters.yml or set the DATABASE_URL environment variable
64
64
url : ' %env(DATABASE_URL)%'
65
-
66
- # instead of using a URL, you may also uncomment the following lines to configure your database
67
- # driver: pdo_mysql
68
- # host: '%database_host%'
69
- # port: '%database_port%'
70
- # dbname: '%database_name%'
71
- # user: '%database_user%'
72
- # password: '%database_password%'
73
- # charset: UTF8
74
-
75
65
orm :
76
66
auto_generate_proxy_classes : ' %kernel.debug%'
77
67
auto_mapping : true
@@ -83,8 +73,5 @@ doctrine:
83
73
# stores options that change from one server to another
84
74
#
85
75
swiftmailer :
86
- transport : ' %mailer_transport%'
87
- host : ' %mailer_host%'
88
- username : ' %mailer_user%'
89
- password : ' %mailer_password%'
90
- spool : { type: memory }
76
+ url : ' %env(MAILER_URL)%'
77
+ spool : { type: memory }
Original file line number Diff line number Diff line change @@ -15,14 +15,6 @@ web_profiler:
15
15
# swiftmailer:
16
16
# disable_delivery: true
17
17
18
- # It's recommended to use a separate database for tests. This allows to have a
19
- # fixed and known set of data fixtures, it simplifies the code of tests and it
20
- # makes them more robust.
21
- # In this case we just need to define a different path for the application database.
22
- doctrine :
23
- dbal :
24
- path : " %kernel.project_dir%/var/data/blog_test.sqlite"
25
-
26
18
# this configuration simplifies testing URLs protected by the security mechanism
27
19
# See https://symfony.com/doc/current/cookbook/testing/http_authentication.html
28
20
security :
Original file line number Diff line number Diff line change @@ -33,7 +33,4 @@ parameters:
33
33
34
34
# If you don't use a real mail server, you can send emails via your Gmail account.
35
35
# see https://symfony.com/doc/current/cookbook/email/gmail.html
36
- mailer_transport: smtp
37
- mailer_host: 127.0.0.1
38
- mailer_user: ~
39
- mailer_password: ~
36
+ env(MAILER_URL): 'smtp://localhost:25?encryption=&auth_mode='
Original file line number Diff line number Diff line change 10
10
<php >
11
11
<ini name =" error_reporting" value =" -1" />
12
12
<server name =" KERNEL_DIR" value =" app/" />
13
+ <env name =" DATABASE_URL" value =" sqlite:///var/data/blog_test.sqlite" />
13
14
</php >
14
15
15
16
<testsuites >
You can’t perform that action at this time.
0 commit comments