Skip to content

Instantly share code, notes, and snippets.

@meDavid
Last active April 5, 2017 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meDavid/7acea2f6b52955a716c52f547b2dd02b to your computer and use it in GitHub Desktop.
Save meDavid/7acea2f6b52955a716c52f547b2dd02b to your computer and use it in GitHub Desktop.
creditcard application simple configuration
framework:
workflows:
creditcard_application_flow:
type: 'state_machine' # 'workflow' or 'state_machine', defaults to 'workflow'
marking_store:
type: 'single_state' # 'single_state or 'multiple_state'
supports: # the Subject entity. No longer required in Symfony 3.3+
- AppBundle\Entity\CreditcardApplication
places:
- start
- email_confirmed
- application_validated
- card_created
- card_activated
transitions:
confirm_email:
from: start
to: email_confirmed
validate_application:
from: email_confirmed
to: application_validated
create_card:
from: application_validated
to: card_created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment