File tree 3 files changed +16
-26
lines changed
src/Symfony/Bundle/FrameworkBundle
Tests/DependencyInjection/Fixtures/xml
3 files changed +16
-26
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,6 @@ private function addProfilerSection(ArrayNodeDefinition $rootNode)
231
231
private function addWorkflowSection (ArrayNodeDefinition $ rootNode )
232
232
{
233
233
$ rootNode
234
- ->fixXmlConfig ('workflow ' )
235
234
->children ()
236
235
->arrayNode ('workflows ' )
237
236
->useAttributeAsKey ('name ' )
Original file line number Diff line number Diff line change 237
237
<xsd : complexType name =" workflow" >
238
238
<xsd : sequence >
239
239
<xsd : element name =" marking-store" type =" marking_store" />
240
- <xsd : element name =" supports " type =" xsd:string" minOccurs =" 1" maxOccurs =" unbounded" />
241
- <xsd : element name =" places " type =" xsd:string" minOccurs =" 1" maxOccurs =" unbounded" />
242
- <xsd : element name =" transitions " type =" transitions " />
240
+ <xsd : element name =" support " type =" xsd:string" minOccurs =" 1" maxOccurs =" unbounded" />
241
+ <xsd : element name =" place " type =" xsd:string" minOccurs =" 1" maxOccurs =" unbounded" />
242
+ <xsd : element name =" transition " type =" transition " minOccurs = " 1 " maxOccurs = " unbounded " />
243
243
</xsd : sequence >
244
244
<xsd : attribute name =" name" type =" xsd:string" />
245
245
</xsd : complexType >
246
246
247
247
<xsd : complexType name =" marking_store" >
248
248
<xsd : sequence >
249
- <xsd : element name =" type" type =" xsd:string" minOccurs =" 0" maxOccurs =" 1" />
250
- <xsd : element name =" arguments" type =" xsd:string" minOccurs =" 0" maxOccurs =" unbounded" />
251
- <xsd : element name =" service" type =" xsd:string" minOccurs =" 0" maxOccurs =" 1" />
252
- </xsd : sequence >
253
- </xsd : complexType >
254
-
255
- <xsd : complexType name =" transitions" >
256
- <xsd : sequence >
257
- <xsd : element name =" transition" type =" transition" />
249
+ <xsd : element name =" argument" type =" xsd:string" minOccurs =" 0" maxOccurs =" unbounded" />
258
250
</xsd : sequence >
251
+ <xsd : attribute name =" type" type =" xsd:string" use =" optional" />
252
+ <xsd : attribute name =" service" type =" xsd:string" use =" optional" />
259
253
</xsd : complexType >
260
254
261
255
<xsd : complexType name =" transition" >
Original file line number Diff line number Diff line change 9
9
<framework : config >
10
10
<framework : workflows >
11
11
<framework : workflow name =" my_workflow" >
12
- <framework : marking-store >
13
- <framework : type >multiple_state</framework : type >
14
- <framework : arguments >a</framework : arguments >
15
- <framework : arguments >a</framework : arguments >
12
+ <framework : marking-store type =" multiple_state" >
13
+ <framework : argument >a</framework : argument >
14
+ <framework : argument >a</framework : argument >
16
15
</framework : marking-store >
17
- <framework : supports >Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest</framework : supports >
18
- <framework : places >first</framework : places >
19
- <framework : places >last</framework : places >
20
- <framework : transitions >
21
- <framework : transition name =" foobar" >
22
- <framework : from >a</framework : from >
23
- <framework : to >a</framework : to >
24
- </framework : transition >
25
- </framework : transitions >
16
+ <framework : support >Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest</framework : support >
17
+ <framework : place >first</framework : place >
18
+ <framework : place >last</framework : place >
19
+ <framework : transition name =" foobar" >
20
+ <framework : from >a</framework : from >
21
+ <framework : to >a</framework : to >
22
+ </framework : transition >
26
23
</framework : workflow >
27
24
</framework : workflows >
28
25
</framework : config >
You can’t perform that action at this time.
0 commit comments