@@ -58,7 +58,7 @@ like this:
58
58
arguments :
59
59
- ' currentPlace'
60
60
supports :
61
- - AppBundle \Entity\BlogPost
61
+ - App \Entity\BlogPost
62
62
initial_place : draft
63
63
places :
64
64
- draft
@@ -95,7 +95,7 @@ like this:
95
95
<framework : argument >currentPlace</framework : argument >
96
96
</framework : marking-store >
97
97
98
- <framework : support >AppBundle \Entity\BlogPost</framework : support >
98
+ <framework : support >App \Entity\BlogPost</framework : support >
99
99
100
100
<framework : place >draft</framework : place >
101
101
<framework : place >reviewed</framework : place >
@@ -137,7 +137,7 @@ like this:
137
137
'type' => 'multiple_state', // or 'single_state'
138
138
'arguments' => ['currentPlace']
139
139
],
140
- 'supports' => ['AppBundle \Entity\BlogPost'],
140
+ 'supports' => ['App \Entity\BlogPost'],
141
141
'places' => [
142
142
'draft',
143
143
'reviewed',
@@ -197,7 +197,7 @@ As configured, the following property is used by the marking store::
197
197
With this workflow named ``blog_publishing ``, you can get help to decide
198
198
what actions are allowed on a blog post::
199
199
200
- $post = new AppBundle \Entity\BlogPost();
200
+ $post = new App \Entity\BlogPost();
201
201
202
202
$workflow = $this->container->get('workflow.blog_publishing');
203
203
$workflow->can($post, 'publish'); // False
@@ -365,7 +365,7 @@ missing a title::
365
365
{
366
366
public function guardReview(GuardEvent $event)
367
367
{
368
- /** @var AppBundle \Entity\BlogPost $post */
368
+ /** @var App \Entity\BlogPost $post */
369
369
$post = $event->getSubject();
370
370
$title = $post->title;
371
371
0 commit comments