Repository navigation
[Workflow] Fix configuration examples - #23530
Merged
Merged
Conversation
- call is_authenticated() as a function in guard expressions - use workflow() instead of workflows() in the PHP config builder - use the existing "method" marking store type and the "property" attribute in XML examples - import the BlogPostMarkingStore class that is used in the custom marking store example - use the "reviewed" place in the metadata example - fix the default value of the marking store "property" option
Member
|
Thank you @BenMacha. |
javiereguiluz
force-pushed
the
docs-workflow-fixes
branch
from
December 2, 2026 16:22
88364b0 to
619a42b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few examples in the workflow docs don't work as written on 7.4:
is_authenticatedin the guard examples is a function of the security expression provider, so it must be called asis_authenticated(). Without the parentheses the expression parser treats it as an unknown variable.$framework->workflows()->workflows('...'). The generated config builder method isworkflow()(the other examples were already fixed in [Workflow] doc: fix php workflow examples #21720).<framework:marking-store type="single_state">with an<framework:argument>child.single_stateis not a valid type anymore (the XSD and the config tree only acceptmethod) andargumentis not a valid option, so they now usetype="method" property="..."like the YAML and PHP examples.ReflectionMarkingStorebut usedBlogPostMarkingStore.to_reviewtransition went toreview, which is not a place of theblog_publishingworkflow (the PHP version of the same example already usedreviewed).propertyoption is the stringmarking, not['marking'].