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
195195 {
196196 $this->currentPlace = $currentPlace;
197197 }
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
198201 }
199202
200203It 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::
267270 use Symfony\Component\Workflow\Exception\LogicException;
268271
269272 $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
270275
271276 $workflow = $this->container->get('workflow.blog_publishing');
272277 $workflow->can($post, 'publish'); // False
You can’t perform that action at this time.
0 commit comments