This repository was archived by the owner on Feb 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +10
-26
lines changed
Tests/DependencyInjection/Fixtures/config/xml Expand file tree Collapse file tree 5 files changed +10
-26
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,9 @@ public function getConfigTreeBuilder()
84
84
->end ()
85
85
->scalarNode ('delivery_address ' )->end ()
86
86
->end ()
87
- ->fixXmlConfig ('pattern ' , 'delivery_whitelist ' )
87
+ ->fixXmlConfig ('delivery_whitelist_pattern ' , 'delivery_whitelist ' )
88
88
->children ()
89
89
->arrayNode ('delivery_whitelist ' )
90
- ->beforeNormalization ()
91
- ->ifTrue (function ($ v ) {return isset ($ v ['pattern ' ]) && is_array ($ v ['pattern ' ]);})
92
- ->then (function ($ v ) {return $ v ['pattern ' ];})
93
- ->end ()
94
90
->prototype ('scalar ' )
95
91
->end ()
96
92
->end ()
Original file line number Diff line number Diff line change 8
8
<xsd : element name =" config" type =" config" />
9
9
10
10
<xsd : complexType name =" config" >
11
- <xsd : all >
12
- <xsd : element name =" delivery-whitelist" type =" delivery_whitelist" minOccurs =" 0" maxOccurs =" 1" />
13
- <xsd : element name =" spool" type =" spool" minOccurs =" 0" maxOccurs =" 1" />
11
+ <xsd : sequence >
14
12
<xsd : element name =" antiflood" type =" antiflood" minOccurs =" 0" maxOccurs =" 1" />
15
- </xsd : all >
13
+ <xsd : element name =" spool" type =" spool" minOccurs =" 0" maxOccurs =" 1" />
14
+ <xsd : element name =" delivery-whitelist-pattern" type =" xsd:string" minOccurs =" 0" maxOccurs =" unbounded" />
15
+ </xsd : sequence >
16
16
17
17
<xsd : attribute name =" username" type =" xsd:string" />
18
18
<xsd : attribute name =" password" type =" xsd:string" />
63
63
<xsd : enumeration value =" none" />
64
64
</xsd : restriction >
65
65
</xsd : simpleType >
66
-
67
- <xsd : complexType name =" delivery_whitelist" >
68
- <xsd : choice minOccurs =" 0" maxOccurs =" unbounded" >
69
- <xsd : element name =" pattern" type =" xsd:string" />
70
- </xsd : choice >
71
- </xsd : complexType >
72
66
</xsd : schema >
Original file line number Diff line number Diff line change 19
19
delivery-address =" single@host.com" >
20
20
<swiftmailer : antiflood />
21
21
<swiftmailer : spool type =" memory" />
22
- <swiftmailer : delivery-whitelist >
23
- <swiftmailer : pattern >/foo@.*/</swiftmailer : pattern >
24
- <swiftmailer : pattern >/.*@bar.com$/</swiftmailer : pattern >
25
- </swiftmailer : delivery-whitelist >
22
+ <swiftmailer : delivery-whitelist-pattern >/foo@.*/</swiftmailer : delivery-whitelist-pattern >
23
+ <swiftmailer : delivery-whitelist-pattern >/.*@bar.com$/</swiftmailer : delivery-whitelist-pattern >
26
24
</swiftmailer : config >
27
25
</container >
Original file line number Diff line number Diff line change 6
6
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd" >
7
7
8
8
<swiftmailer : config delivery-address =" single@host.com" >
9
- <swiftmailer : delivery-whitelist >
10
- <swiftmailer : pattern >/foo@.*/</swiftmailer : pattern >
11
- <swiftmailer : pattern >/.*@bar.com$/</swiftmailer : pattern >
12
- </swiftmailer : delivery-whitelist >
9
+ <swiftmailer : delivery-whitelist-pattern >/foo@.*/</swiftmailer : delivery-whitelist-pattern >
10
+ <swiftmailer : delivery-whitelist-pattern >/.*@bar.com$/</swiftmailer : delivery-whitelist-pattern >
13
11
</swiftmailer : config >
14
12
</container >
Original file line number Diff line number Diff line change 6
6
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd" >
7
7
8
8
<swiftmailer : config delivery-address =" single@host.com" >
9
- <swiftmailer : delivery-whitelist >
10
- <swiftmailer : pattern >/foo@.*/</swiftmailer : pattern >
11
- </swiftmailer : delivery-whitelist >
9
+ <swiftmailer : delivery-whitelist-pattern >/foo@.*/</swiftmailer : delivery-whitelist-pattern >
12
10
</swiftmailer : config >
13
11
</container >
You can’t perform that action at this time.
0 commit comments