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"
365
365
workflow leaves a place::
366
366
367
367
// src/App/EventSubscriber/WorkflowLoggerSubscriber.php
368
-
369
368
namespace App\EventSubscriber;
370
369
371
370
use Psr\Log\LoggerInterface;
@@ -419,9 +418,8 @@ This example stops any blog post being transitioned to "reviewed" if it is
419
418
missing a title::
420
419
421
420
// src/App/EventSubscriber/BlogPostReviewSubscriber.php
422
-
423
421
namespace App\EventSubscriber;
424
-
422
+
425
423
use App\Entity\BlogPost;
426
424
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
427
425
use Symfony\Component\Workflow\Event\GuardEvent;
@@ -823,7 +821,6 @@ requires:
823
821
Then you can access this metadata in your controller as follows::
824
822
825
823
// src/App/Controller/BlogPostController.php
826
-
827
824
use App\Entity\BlogPost;
828
825
use Symfony\Component\Workflow\Registry;
829
826
// ...
@@ -847,7 +844,7 @@ Then you can access this metadata in your controller as follows::
847
844
->getMetadataStore()
848
845
->getTransitionMetadata($aTransition)['priority'] ?? 0
849
846
;
850
-
847
+
851
848
// ...
852
849
}
853
850
You can’t perform that action at this time.
0 commit comments