8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d6eb4 commit 34e7cc5Copy full SHA for 34e7cc5
reference/configuration/framework.rst
@@ -255,7 +255,7 @@ Configuration
255
* :ref:`name <reference-workflows-name>`
256
257
* `audit_trail`_
258
- * `initial_place`_
+ * `initial_marking`_
259
* `marking_store`_
260
* `places`_
261
* `supports`_
@@ -2736,12 +2736,12 @@ audit_trail
2736
If set to ``true``, the :class:`Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener`
2737
will be enabled.
2738
2739
-initial_place
2740
-"""""""""""""
+initial_marking
+"""""""""""""""
2741
2742
-**type**: ``string`` **default**: ``null``
+**type**: ``string`` | ``array``
2743
2744
-One of the ``places`` or ``null``. If not null and the supported object is not
+One of the ``places`` or ``empty``. If not null and the supported object is not
2745
already initialized via the workflow, this place will be set.
2746
2747
marking_store
@@ -2753,8 +2753,7 @@ Each marking store can define any of these options:
2753
2754
* ``arguments`` (**type**: ``array``)
2755
* ``service`` (**type**: ``string``)
2756
-* ``type`` (**type**: ``string`` **possible values**: ``'multiple_state'`` or
2757
- ``'single_state'``)
+* ``type`` (**type**: ``string`` **allow value**: ``'method'``)
2758
2759
places
2760
""""""
workflow.rst
@@ -54,12 +54,12 @@ like this:
54
audit_trail:
55
enabled: true
56
marking_store:
57
- type: 'multiple_state' # or 'single_state'
58
- arguments:
+ type: 'method'
+ property:
59
- 'currentPlace'
60
supports:
61
- App\Entity\BlogPost
62
- initial_place: draft
+ initial_marking: draft
63
places:
64
- draft
65
- reviewed
@@ -134,8 +134,8 @@ like this:
134
'enabled' => true
135
],
136
'marking_store' => [
137
- 'type' => 'multiple_state', // or 'single_state'
138
- 'arguments' => ['currentPlace']
+ 'type' => 'method'
+ 'property' => ['currentPlace']
139
140
'supports' => ['App\Entity\BlogPost'],
141
'places' => [
@@ -177,18 +177,6 @@ As configured, the following property is used by the marking store::
177
public $content;
178
}
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
.. tip::
193
194
Setting the ``audit_trail.enabled`` option to ``true`` makes the application
workflow/introduction.rst
@@ -79,7 +79,7 @@ Below is the configuration for the pull request state machine.
79
type: 'state_machine'
80
81
- App\Entity\PullRequest
82
- initial_place: start
+ initial_marking: start
83
84
- start
85
- coding