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 @@ -190,6 +190,9 @@ The configured property will be used via its implemented getter/setter methods b
190190 {
191191 $this->currentPlace = $currentPlace;
192192 }
193+
194+ // you don't need to set the initial marking in the constructor or any other method;
195+ // this is configured in the workflow with the 'initial_marking' option
193196 }
194197
195198.. note ::
@@ -226,6 +229,8 @@ what actions are allowed on a blog post::
226229 use Symfony\Component\Workflow\Exception\LogicException;
227230
228231 $post = new BlogPost();
232+ // you don't need to set the initial marking with code; this is configured
233+ // in the workflow with the 'initial_marking' option
229234
230235 $workflow = $this->container->get('workflow.blog_publishing');
231236 $workflow->can($post, 'publish'); // False
You can’t perform that action at this time.
0 commit comments