File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,6 @@ Here is an example of how to enable logging for every time a "blog_publishing"
365365workflow 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
419418missing 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
You can’t perform that action at this time.
0 commit comments