Configuring a state machine
Last updated
Was this helpful?
Was this helpful?
app_pull_request_apply_transition:
path: /pull-requests/{id}/{transition}
methods: [PUT]
defaults:
_controller: app.controller.pull_request:applyStateMachineTransitionAction
_sylius:
state_machine:
#graph: pull_request # name of the graph for Winzou or workflow name for Symfony (optional)
transition: $transition