Created
March 28, 2017 09:16
-
-
Save meDavid/1d0bd8b39dd1889ed20de65d169454c3 to your computer and use it in GitHub Desktop.
guard expression in Symfony 3.3+
This file contains 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
framework: | |
workflows: | |
creditcard_application_flow: | |
.... | |
transitions: | |
.... | |
create_card: | |
guard: "subject->getRequestedCreditLimit() < 200 or subject->getRequestedCreditLimit() <= subject->getAppprovedCreditLimit()" | |
from: application_validated | |
to: card_created | |
..... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment