Skip to content

Commit 48be02c

Browse files
committed
Simplify the English and turn it into a tip
1 parent 6238972 commit 48be02c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

workflow/usage.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,12 @@ Metadata can also be accessed in a Listener, from the Event object.
610610
Using transition blockers you can
611611
return a user-friendly error message when you stop a transition from happening. In the example we
612612
get this message from the :class:`Symfony\\Component\\Workflow\\Event\\Event`'s metadata, giving
613-
you an easy place to manage the text. This is a contrived example; in production code you may
614-
prefer to use the :doc:`Translation </components/translation>` component to manage messages::
613+
you an easy place to manage the text.
614+
615+
.. tip::
616+
617+
This is a simple example; in production you may prefer to use the :doc:`Translation </components/translation>`
618+
component to manage messages in one place::
615619

616620
namespace App\Listener\Workflow\Task;
617621

0 commit comments

Comments
 (0)