Skip to content

Commit 07dea78

Browse files
Update workflow.rst
1 parent 7f2b61d commit 07dea78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workflow.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ Accessing the Workflow in a Class
238238

239239
You can use the workflow inside a class by using
240240
:doc:`service autowiring </service_container/autowiring>` and using
241-
``camelCased workflow name + Workflow`` as parameter name::
241+
``camelCased workflow name + Workflow`` as parameter name. If it is a state machine type
242+
you can use ``camelCased workflow name + StateMachine``::
242243

243244
use App\Entity\BlogPost;
244245
use Symfony\Component\Workflow\WorkflowInterface;

0 commit comments

Comments
 (0)