From 94e025757bf607f056999d71ceb87892c5d45735 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 1 Apr 2019 22:43:01 +0200 Subject: [PATCH] removed leading slash in FQCN --- workflow/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/usage.rst b/workflow/usage.rst index 5eac4ebe121..903411bc881 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -176,7 +176,7 @@ As configured, the following property is used by the marking store:: With this workflow named ``blog_publishing``, you can get help to decide what actions are allowed on a blog post:: - $post = new \AppBundle\Entity\BlogPost(); + $post = new AppBundle\Entity\BlogPost(); $workflow = $this->container->get('workflow.blog_publishing'); $workflow->can($post, 'publish'); // False @@ -339,7 +339,7 @@ See example to make sure no blog post without title is moved to "review":: { public function guardReview(GuardEvent $event) { - /** @var \AppBundle\Entity\BlogPost $post */ + /** @var AppBundle\Entity\BlogPost $post */ $post = $event->getSubject(); $title = $post->title;