File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,9 @@ The configured property will be used via its implemented getter/setter methods b
195
195
{
196
196
$this->currentPlace = $currentPlace;
197
197
}
198
+
199
+ // you don't need to set the initial marking in the constructor or any other method;
200
+ // this is configured in the workflow with the 'initial_marking' option
198
201
}
199
202
200
203
It is also possible to use public properties for the marking store. The above
@@ -267,6 +270,8 @@ what actions are allowed on a blog post::
267
270
use Symfony\Component\Workflow\Exception\LogicException;
268
271
269
272
$post = new BlogPost();
273
+ // you don't need to set the initial marking with code; this is configured
274
+ // in the workflow with the 'initial_marking' option
270
275
271
276
$workflow = $this->container->get('workflow.blog_publishing');
272
277
$workflow->can($post, 'publish'); // False
You can’t perform that action at this time.
0 commit comments