@@ -33,14 +33,15 @@ will not be sent when you run tests, but will continue to be sent in the
33
33
.. code-block :: xml
34
34
35
35
<!-- app/config/config_test.xml -->
36
-
37
- <!--
36
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
37
+ <container xmlns =" http://symfony.com/schema/dic/services"
38
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
38
39
xmlns : swiftmailer =" http://symfony.com/schema/dic/swiftmailer"
39
- http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer -1.0.xsd
40
- -- >
40
+ xsi : schemaLocation = " http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services -1.0.xsd
41
+ http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd " >
41
42
42
- <swiftmailer : config
43
- disable-delivery = " true " / >
43
+ <swiftmailer : config disable-delivery = " true " />
44
+ </ container >
44
45
45
46
.. code-block :: php
46
47
@@ -70,13 +71,15 @@ via the ``delivery_address`` option:
70
71
.. code-block :: xml
71
72
72
73
<!-- app/config/config_dev.xml -->
73
-
74
- <!--
74
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
75
+ <container xmlns =" http://symfony.com/schema/dic/services"
76
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
75
77
xmlns : swiftmailer =" http://symfony.com/schema/dic/swiftmailer"
76
- http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer -1.0.xsd
77
- -- >
78
+ xsi : schemaLocation = " http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services -1.0.xsd
79
+ http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd " >
78
80
79
- <swiftmailer : config delivery-address =" dev@example.com" />
81
+ <swiftmailer : config delivery-address =" dev@example.com" />
82
+ </container >
80
83
81
84
.. code-block :: php
82
85
@@ -151,16 +154,21 @@ by adding the ``delivery_whitelist`` option:
151
154
<!-- app/config/config_dev.xml -->
152
155
153
156
<?xml version =" 1.0" charset =" UTF-8" ?>
157
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
154
158
<container xmlns =" http://symfony.com/schema/dic/services"
155
- xmlns : swiftmailer =" http://symfony.com/schema/dic/swiftmailer" >
159
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
160
+ xmlns : swiftmailer =" http://symfony.com/schema/dic/swiftmailer"
161
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
162
+ http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd" >
156
163
157
- <swiftmailer : config delivery-address =" dev@example.com" >
158
- <!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
159
- <swiftmailer : delivery-whitelist-pattern >/@specialdomain\.com$/</swiftmailer : delivery-whitelist-pattern >
164
+ <swiftmailer : config delivery-address =" dev@example.com" >
165
+ <!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
166
+ <swiftmailer : delivery-whitelist-pattern >/@specialdomain\.com$/</swiftmailer : delivery-whitelist-pattern >
160
167
161
- <!-- all emails sent to admin@mydomain.com won't be redirected to dev@example.com too -->
162
- <swiftmailer : delivery-whitelist-pattern >/^admin@mydomain\.com$/</swiftmailer : delivery-whitelist-pattern >
163
- </swiftmailer : config >
168
+ <!-- all emails sent to admin@mydomain.com won't be redirected to dev@example.com too -->
169
+ <swiftmailer : delivery-whitelist-pattern >/^admin@mydomain\.com$/</swiftmailer : delivery-whitelist-pattern >
170
+ </swiftmailer : config >
171
+ </container >
164
172
165
173
.. code-block :: php
166
174
0 commit comments