Skip to content

Commit ea6e30a

Browse files
author
Stephan Wentz
committed
[Workflow] Add missing audit-trail settings in framework workflow config xsd
1 parent e6d10d6 commit ea6e30a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Resources/config/schema/symfony-1.0.xsd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@
310310

311311
<xsd:complexType name="workflow">
312312
<xsd:sequence>
313+
<xsd:element name="audit-trail" type="audit_trail" minOccurs="0" maxOccurs="1" />
313314
<xsd:element name="initial-marking" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
314315
<xsd:element name="marking-store" type="marking_store" minOccurs="0" maxOccurs="1" />
315316
<xsd:element name="support" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
@@ -339,6 +340,19 @@
339340
<xsd:attribute name="logLevel" type="xsd:string" />
340341
</xsd:complexType>
341342

343+
<xsd:complexType name="audit_trail">
344+
<xsd:attribute name="enabled" type="xsd:boolean" />
345+
</xsd:complexType>
346+
347+
<xsd:simpleType name="audit_trail_enabled">
348+
<xsd:restriction base="xsd:string">
349+
<xsd:enumeration value="true" />
350+
<xsd:enumeration value="false" />
351+
<xsd:enumeration value="1" />
352+
<xsd:enumeration value="0" />
353+
</xsd:restriction>
354+
</xsd:simpleType>
355+
342356
<xsd:complexType name="marking_store">
343357
<xsd:sequence>
344358
<xsd:element name="argument" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />

Tests/DependencyInjection/Fixtures/xml/workflows.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
<framework:config>
1010
<framework:workflow name="article" type="workflow">
11+
<framework:audit-trail enabled="true"/>
1112
<framework:initial-marking>draft</framework:initial-marking>
1213
<framework:marking-store type="method" property="state" />
1314
<framework:support>Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest</framework:support>
@@ -42,6 +43,7 @@
4243
</framework:workflow>
4344

4445
<framework:workflow name="pull_request">
46+
<framework:audit-trail enabled="false"/>
4547
<framework:initial-marking>start</framework:initial-marking>
4648
<framework:support>Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest</framework:support>
4749
<framework:place name="start">

0 commit comments

Comments
 (0)