Skip to content

Commit f604a61

Browse files
Update workflow configuration example following Symfony 4.3 deprecations
Added 'initial_marking' and added 'marking_store' with 'type: method' and property name.
1 parent 7cb2585 commit f604a61

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

workflow/introduction.rst

+14-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ Below is the configuration for the pull request state machine.
7777
workflows:
7878
pull_request:
7979
type: 'state_machine'
80+
marking_store:
81+
type: 'method'
82+
property: 'currentPlace'
8083
supports:
8184
- App\Entity\PullRequest
8285
initial_marking: start
@@ -123,9 +126,14 @@ Below is the configuration for the pull request state machine.
123126
124127
<framework:config>
125128
<framework:workflow name="pull_request" type="state_machine">
126-
<framework:marking-store type="single_state"/>
129+
<framework:marking-store>
130+
<framework:type>method</framework:type>
131+
<framework:property>currentPlace</framework:property>
132+
</framework:marking-store>
127133
128134
<framework:support>App\Entity\PullRequest</framework:support>
135+
136+
<framework:initial_marking>start</framework:initial_marking>
129137
130138
<framework:place>start</framework:place>
131139
<framework:place>coding</framework:place>
@@ -191,7 +199,12 @@ Below is the configuration for the pull request state machine.
191199
'workflows' => [
192200
'pull_request' => [
193201
'type' => 'state_machine',
202+
'marking_store' => [
203+
'type' => 'method',
204+
'property' => 'currentPlace',
205+
],
194206
'supports' => ['App\Entity\PullRequest'],
207+
'initial_marking' => 'start',
195208
'places' => [
196209
'start',
197210
'coding',

0 commit comments

Comments
 (0)