Skip to content

Commit 68bb0e3

Browse files
committed
minor symfony#11571 Don't use AppBundle in 4.2 (OskarStark)
This PR was merged into the 4.2 branch. Discussion ---------- Don't use AppBundle in 4.2 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 439338b Don't use AppBundle in 4.2
2 parents 891a93c + 439338b commit 68bb0e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workflow.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ like this:
5858
arguments:
5959
- 'currentPlace'
6060
supports:
61-
- AppBundle\Entity\BlogPost
61+
- App\Entity\BlogPost
6262
initial_place: draft
6363
places:
6464
- draft
@@ -95,7 +95,7 @@ like this:
9595
<framework:argument>currentPlace</framework:argument>
9696
</framework:marking-store>
9797
98-
<framework:support>AppBundle\Entity\BlogPost</framework:support>
98+
<framework:support>App\Entity\BlogPost</framework:support>
9999
100100
<framework:place>draft</framework:place>
101101
<framework:place>reviewed</framework:place>
@@ -137,7 +137,7 @@ like this:
137137
'type' => 'multiple_state', // or 'single_state'
138138
'arguments' => ['currentPlace']
139139
],
140-
'supports' => ['AppBundle\Entity\BlogPost'],
140+
'supports' => ['App\Entity\BlogPost'],
141141
'places' => [
142142
'draft',
143143
'reviewed',
@@ -197,7 +197,7 @@ As configured, the following property is used by the marking store::
197197
With this workflow named ``blog_publishing``, you can get help to decide
198198
what actions are allowed on a blog post::
199199

200-
$post = new AppBundle\Entity\BlogPost();
200+
$post = new App\Entity\BlogPost();
201201

202202
$workflow = $this->container->get('workflow.blog_publishing');
203203
$workflow->can($post, 'publish'); // False
@@ -365,7 +365,7 @@ missing a title::
365365
{
366366
public function guardReview(GuardEvent $event)
367367
{
368-
/** @var AppBundle\Entity\BlogPost $post */
368+
/** @var App\Entity\BlogPost $post */
369369
$post = $event->getSubject();
370370
$title = $post->title;
371371

0 commit comments

Comments
 (0)