Skip to content

More flexible when syntax #18

Closed
@g105b

Description

@g105b

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions