Skip to content

Commit 6645401

Browse files
committed
minor #19664 [Workflow] Attach workflow configuration to tags (alexandre-daubois)
This PR was merged into the 7.1 branch. Discussion ---------- [Workflow] Attach workflow configuration to tags Fix #19659 Commits ------- e94de7a [Workflow] Attach workflow configuration to tags
2 parents b9b4231 + e94de7a commit 6645401

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

service_container/tags.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ or from your kernel::
458458
:ref:`components documentation <components-di-compiler-pass>` for more
459459
information.
460460

461+
.. _tags_additional-attributes:
462+
461463
Adding Additional Attributes on Tags
462464
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
463465

workflow.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,17 @@ name.
366366
* ``workflow.workflow``: all workflows;
367367
* ``workflow.state_machine``: all state machines.
368368

369+
Note that workflow metadata are attached to tags under the
370+
``metatdata`` key, giving you more context and information about the workflow
371+
at disposal. You can learn more about
372+
:ref:`tag attributes <tags_additional-attributes>` and
373+
:ref:`storing workflow metadata <workflow_storing-metadata>`
374+
in their dedicated sections.
375+
376+
.. versionadded:: 7.1
377+
378+
The attached configuration to the tag was introduced in Symfony 7.1.
379+
369380
.. tip::
370381

371382
You can find the list of available workflow services with the
@@ -1032,6 +1043,8 @@ The following example shows these functions in action:
10321043
<span class="error">{{ blocker.message }}</span>
10331044
{% endfor %}
10341045

1046+
.. _workflow_storing-metadata:
1047+
10351048
Storing Metadata
10361049
----------------
10371050

0 commit comments

Comments
 (0)