Skip to content

Commit 50ed4a2

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Workflow] Mention that the initial marking is configured, not set in code
2 parents a7791c5 + 0af959e commit 50ed4a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

workflow.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

200203
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::
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

0 commit comments

Comments
 (0)