File tree 3 files changed +12
-25
lines changed
Filter options
3 files changed +12
-25
lines changed
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ Configuration
255
255
* :ref: `name <reference-workflows-name >`
256
256
257
257
* `audit_trail `_
258
- * `initial_place `_
258
+ * `initial_marking `_
259
259
* `marking_store `_
260
260
* `places `_
261
261
* `supports `_
@@ -2736,12 +2736,12 @@ audit_trail
2736
2736
If set to ``true ``, the :class: `Symfony\\ Component\\ Workflow\\ EventListener\\ AuditTrailListener `
2737
2737
will be enabled.
2738
2738
2739
- initial_place
2740
- """""""""""""
2739
+ initial_marking
2740
+ """""""""""""""
2741
2741
2742
- **type **: ``string `` ** default **: ``null ``
2742
+ **type **: ``string `` | ``array ``
2743
2743
2744
- One of the ``places `` or ``null ``. If not null and the supported object is not
2744
+ One of the ``places `` or ``empty ``. If not null and the supported object is not
2745
2745
already initialized via the workflow, this place will be set.
2746
2746
2747
2747
marking_store
@@ -2753,8 +2753,7 @@ Each marking store can define any of these options:
2753
2753
2754
2754
* ``arguments `` (**type **: ``array ``)
2755
2755
* ``service `` (**type **: ``string ``)
2756
- * ``type `` (**type **: ``string `` **possible values **: ``'multiple_state' `` or
2757
- ``'single_state' ``)
2756
+ * ``type `` (**type **: ``string `` **allow value **: ``'method' ``)
2758
2757
2759
2758
places
2760
2759
""""""
Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ like this:
54
54
audit_trail :
55
55
enabled : true
56
56
marking_store :
57
- type : ' multiple_state ' # or 'single_state '
58
- arguments :
57
+ type : ' method '
58
+ property :
59
59
- ' currentPlace'
60
60
supports :
61
61
- App\Entity\BlogPost
62
- initial_place : draft
62
+ initial_marking : draft
63
63
places :
64
64
- draft
65
65
- reviewed
@@ -134,8 +134,8 @@ like this:
134
134
'enabled' => true
135
135
],
136
136
'marking_store' => [
137
- 'type' => 'multiple_state', // or 'single_state '
138
- 'arguments ' => ['currentPlace']
137
+ 'type' => 'method '
138
+ 'property ' => ['currentPlace']
139
139
],
140
140
'supports' => ['App\Entity\BlogPost'],
141
141
'places' => [
@@ -177,18 +177,6 @@ As configured, the following property is used by the marking store::
177
177
public $content;
178
178
}
179
179
180
- .. note ::
181
-
182
- The marking store type could be "multiple_state" or "single_state". A single
183
- state marking store does not support a model being on multiple places at the
184
- same time.
185
-
186
- .. tip ::
187
-
188
- The ``type `` (default value ``single_state ``) and ``arguments `` (default
189
- value ``marking ``) attributes of the ``marking_store `` option are optional.
190
- If omitted, their default values will be used.
191
-
192
180
.. tip ::
193
181
194
182
Setting the ``audit_trail.enabled `` option to ``true `` makes the application
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ Below is the configuration for the pull request state machine.
79
79
type : ' state_machine'
80
80
supports :
81
81
- App\Entity\PullRequest
82
- initial_place : start
82
+ initial_marking : start
83
83
places :
84
84
- start
85
85
- coding
You can’t perform that action at this time.
0 commit comments