Skip to content

Commit 5223df8

Browse files
committed
Fixed some minor issues
1 parent 259ff15 commit 5223df8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

workflow.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ Here is an example of how to enable logging for every time a "blog_publishing"
365365
workflow leaves a place::
366366

367367
// src/App/EventSubscriber/WorkflowLoggerSubscriber.php
368-
369368
namespace App\EventSubscriber;
370369

371370
use Psr\Log\LoggerInterface;
@@ -419,9 +418,8 @@ This example stops any blog post being transitioned to "reviewed" if it is
419418
missing a title::
420419

421420
// src/App/EventSubscriber/BlogPostReviewSubscriber.php
422-
423421
namespace App\EventSubscriber;
424-
422+
425423
use App\Entity\BlogPost;
426424
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
427425
use Symfony\Component\Workflow\Event\GuardEvent;
@@ -823,7 +821,6 @@ requires:
823821
Then you can access this metadata in your controller as follows::
824822

825823
// src/App/Controller/BlogPostController.php
826-
827824
use App\Entity\BlogPost;
828825
use Symfony\Component\Workflow\Registry;
829826
// ...
@@ -847,7 +844,7 @@ Then you can access this metadata in your controller as follows::
847844
->getMetadataStore()
848845
->getTransitionMetadata($aTransition)['priority'] ?? 0
849846
;
850-
847+
851848
// ...
852849
}
853850

0 commit comments

Comments
 (0)