Instantly share code, notes, and snippets.

Embed
What would you like to do?
guard expression in Symfony 3.3+
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