8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf7d2f commit c93bd6bCopy full SHA for c93bd6b
workflow.rst
@@ -234,13 +234,13 @@ registry in the constructor::
234
$this->workflowRegistry = $workflowRegistry;
235
}
236
237
- public function toReview(BlogPost $blogPost)
+ public function toReview(BlogPost $post)
238
{
239
- $workflow = $this->workflowRegistry->get($blogPost);
+ $workflow = $this->workflowRegistry->get($post);
240
241
// Update the currentState on the post
242
try {
243
- $workflow->apply($blogPost, 'to_review');
+ $workflow->apply($post, 'to_review');
244
} catch (LogicException $exception) {
245
// ...
246
0 commit comments