Skip to content
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

More flexible when syntax #18

Open
g105b opened this issue May 10, 2018 · 0 comments
Open

More flexible when syntax #18

g105b opened this issue May 10, 2018 · 0 comments
Milestone

Comments

@g105b
Copy link
Member

g105b commented May 10, 2018

Following on from #15, now it is possible to create a trigger with just the keys, it would be nice to allow variable arguments to the when function.

Examples:

$input->when("code"); // triggers when "code" is present
$input->when("code", "email"); // triggers when "code" and "email" are present
$input->when(["code" => "1234", "email"]); // triggers when "code" is "1234" and "email" is present
@g105b g105b added this to the v2 milestone May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant