We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So, instead of simply listening to one event:
<?php (new Manager)->attach([ 'name' => 'some-event', 'callback' => function($e) {} ]);
we could attache to multiple:
<?php (new Manager)->attach([ 'name' => ['some-event', 'some-other-event'], 'callback' => function($e) {} ]);
and from here, it would also maybe be nice to implement an all:
<?php (new Manager)->attach([ 'name' => '*', 'callback' => function($e) {} ]);
The text was updated successfully, but these errors were encountered:
Another option might also be to be able to attach to an event by a pattern. eg;
<?php (new Manager)->attach([ 'name' => 'pre.in.*', 'callback' => function($e) {} ]);
Sorry, something went wrong.
Closed by 98047dd & 6fb92c1
The pattern matching proposal is going to be far too inefficient IMO.
No branches or pull requests
So, instead of simply listening to one event:
we could attache to multiple:
and from here, it would also maybe be nice to implement an all:
The text was updated successfully, but these errors were encountered: