You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #18058 [Workflow] Update workflow.rst (Mick3DIY)
This PR was submitted for the 6.2 branch but it was squashed and merged into the 5.4 branch instead.
Discussion
----------
[Workflow] Update workflow.rst
Add Tip for using constants in YAML files to define a large workflow and use these constants everywhere ! :) Cheers to the team <3
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).
-->
Commits
-------
4b1c9cb [Workflow] Update workflow.rst
Copy file name to clipboardExpand all lines: workflow.rst
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,10 @@ follows:
160
160
If you are creating your first workflows, consider using the ``workflow:dump``
161
161
command to :doc:`debug the workflow contents </workflow/dumping-workflows>`.
162
162
163
+
.. tip::
164
+
165
+
You can use constants in YAML files and add some in the BlogPost entity for places ``draft`` by ``!php/const App\Entity\BlogPost::STATE_DRAFT`` or for transitions ``to_review`` by ``!php/const App\Entity\BlogPost::TRANSITION_TO_REVIEW``.
166
+
163
167
The configured property will be used via its implemented getter/setter methods by the marking store::
0 commit comments