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
189
189
{
190
190
$this->currentPlace = $currentPlace;
191
191
}
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
192
195
}
193
196
194
197
.. note ::
@@ -225,6 +228,8 @@ what actions are allowed on a blog post::
225
228
use Symfony\Component\Workflow\Exception\LogicException;
226
229
227
230
$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
228
233
229
234
$workflow = $this->container->get('workflow.blog_publishing');
230
235
$workflow->can($post, 'publish'); // False
You can’t perform that action at this time.
0 commit comments