File tree 5 files changed +59
-1
lines changed
src/Symfony/Component/Workflow
5 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -110,3 +110,49 @@ Yaml
110
110
----
111
111
112
112
* Using a mapping inside a multi-line string is deprecated and will throw a ` ParseException ` in 5.0.
113
+
114
+ Workflow
115
+ --------
116
+
117
+ * ` MultipleStateMarkingStore ` is deprecated. Use ` MethodMarkingStore ` instead.
118
+
119
+ Before:
120
+ ``` yaml
121
+ framework :
122
+ workflows :
123
+ article :
124
+ marking_store :
125
+ type : multiple
126
+ ` ` `
127
+
128
+ After:
129
+ ` ` ` yaml
130
+ framework :
131
+ workflows :
132
+ article :
133
+ marking_store :
134
+ type : method
135
+
136
+ ```
137
+
138
+ * ` SingleStateMarkingStore ` is deprecated. Use ` MethodMarkingStore ` instead.
139
+
140
+ Before:
141
+ ``` yaml
142
+ framework :
143
+ workflows :
144
+ article :
145
+ marking_store :
146
+ type : single
147
+ ` ` `
148
+
149
+ After:
150
+ ` ` ` yaml
151
+ framework :
152
+ workflows :
153
+ article :
154
+ marking_store :
155
+ type : method
156
+ arguments :
157
+ - true
158
+ ` ` `
Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ CHANGELOG
4
4
4.3.0
5
5
-----
6
6
7
- * Trigger ` entered ` event for subject entering in the Workflow for the first time
7
+ * Trigger ` entered ` event for subject entering in the Workflow for the first time.
8
8
* Added a context to ` Workflow::apply() ` . The ` MethodMarkingStore ` could be used to leverage this feature.
9
+ * Deprecated the ` MultipleStateMarkingStore ` class, use the ` MethodMarkingStore ` instead.
10
+ * Deprecated the ` SingleStateMarkingStore ` class, use the ` MethodMarkingStore ` instead.
9
11
10
12
4.1.0
11
13
-----
Original file line number Diff line number Diff line change 19
19
*
20
20
* This store deals with a "single state" or "multiple state" Marking.
21
21
*
22
+ * "single state" Marking means a subject can be in one and only one state at
23
+ * the same time. Use it with state machine or specific workflow.
24
+ *
25
+ * "multiple state" Marking means a subject can be in many states at the same
26
+ * time. Use it with workflow.
27
+ *
22
28
* @author Grégoire Pineau <lyrixx@lyrixx.info>
23
29
*/
24
30
class MethodMarkingStore implements MarkingStoreInterface
Original file line number Diff line number Diff line change 22
22
* This store deals with a "multiple state" Marking. It means a subject can be
23
23
* in many states at the same time.
24
24
*
25
+ * @deprecated since Symfony 4.3. Use MethodMarkingStore instead.
26
+ *
25
27
* @author Grégoire Pineau <lyrixx@lyrixx.info>
26
28
*/
27
29
class MultipleStateMarkingStore implements MarkingStoreInterface
Original file line number Diff line number Diff line change 21
21
* This store deals with a "single state" Marking. It means a subject can be in
22
22
* one and only one state at the same time.
23
23
*
24
+ * @deprecated since Symfony 4.3. Use MethodMarkingStore instead.
25
+ *
24
26
* @author Grégoire Pineau <lyrixx@lyrixx.info>
25
27
*/
26
28
class SingleStateMarkingStore implements MarkingStoreInterface
You can’t perform that action at this time.
0 commit comments