File tree 5 files changed +55
-1
lines changed
src/Symfony/Component/Workflow
5 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -140,4 +140,46 @@ Workflow
140
140
{
141
141
}
142
142
}
143
+
144
+ * `MultipleStateMarkingStore` is deprecated. Use `MethodMarkingStore` instead.
145
+
146
+ Before:
147
+ ```yaml
148
+ framework:
149
+ workflows:
150
+ article:
151
+ marking_store:
152
+ type: multiple
153
+ ```
154
+
155
+ After:
156
+ ``` yaml
157
+ framework :
158
+ workflows :
159
+ article :
160
+ marking_store :
161
+ type : method
162
+
163
+ ```
164
+
165
+ * ` SingleStateMarkingStore ` is deprecated. Use ` MethodMarkingStore ` instead.
166
+
167
+ Before:
168
+ ``` yaml
169
+ framework :
170
+ workflows :
171
+ article :
172
+ marking_store :
173
+ type : single
174
+ ` ` `
175
+
176
+ After:
177
+ ` ` ` yaml
178
+ framework :
179
+ workflows :
180
+ article :
181
+ marking_store :
182
+ type : method
183
+ arguments :
184
+ - true
143
185
` ` `
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