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