Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,15 @@ machine type, use ``camelCased workflow name + StateMachine``::
}
}

To get the enabled transition of a Workflow, you can use
:method:`Symfony\\Component\\Workflow\\WorkflowInterface::getEnabledTransition`
method.

.. versionadded:: 7.1

The :method:`Symfony\\Component\\Workflow\\WorkflowInterface::getEnabledTransition`
method was introduced in Symfony 7.1.

Workflows can also be injected thanks to their name and the
:class:`Symfony\\Component\\DependencyInjection\\Attribute\\Target`
attribute::
Expand Down