Skip to content

Update workflow configuration example following Symfony 4.3 deprecations #12270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2019
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
Update workflow configuration example following Symfony 4.3 deprecations
Added 'initial_marking' and added 'marking_store' with 'type: method' and property name.
  • Loading branch information
benjamintoussaint authored Sep 4, 2019
commit f604a616c950cbdd3b67c020ab4010f8e84bcb39
15 changes: 14 additions & 1 deletion workflow/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ Below is the configuration for the pull request state machine.
workflows:
pull_request:
type: 'state_machine'
marking_store:
type: 'method'
property: 'currentPlace'
supports:
- App\Entity\PullRequest
initial_marking: start
Expand Down Expand Up @@ -123,9 +126,14 @@ Below is the configuration for the pull request state machine.

<framework:config>
<framework:workflow name="pull_request" type="state_machine">
<framework:marking-store type="single_state"/>
<framework:marking-store>
<framework:type>method</framework:type>
<framework:property>currentPlace</framework:property>
</framework:marking-store>

<framework:support>App\Entity\PullRequest</framework:support>

<framework:initial_marking>start</framework:initial_marking>

<framework:place>start</framework:place>
<framework:place>coding</framework:place>
Expand Down Expand Up @@ -191,7 +199,12 @@ Below is the configuration for the pull request state machine.
'workflows' => [
'pull_request' => [
'type' => 'state_machine',
'marking_store' => [
'type' => 'method',
'property' => 'currentPlace',
],
'supports' => ['App\Entity\PullRequest'],
'initial_marking' => 'start',
'places' => [
'start',
'coding',
Expand Down