Skip to content

Commit a099575

Browse files
committed
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
2 parents a39282b + 4b1c9cb commit a099575

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ follows:
160160
If you are creating your first workflows, consider using the ``workflow:dump``
161161
command to :doc:`debug the workflow contents </workflow/dumping-workflows>`.
162162

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+
163167
The configured property will be used via its implemented getter/setter methods by the marking store::
164168

165169
// src/Entity/BlogPost.php

0 commit comments

Comments
 (0)