EventRouter catch-all
Closed this issue · 3 comments
jpkleemans commented
Is there a way to listen to all events? For example to log all events.
Something like:
$router->route('*')->to($listener);
prolic commented
You can use a plugin to achieve that.
prolic commented
Implementation details see f.e. here:
https://github.com/prooph/service-bus/blob/master/src/Plugin/MessageProducerPlugin.php
jpkleemans commented
Ah, thanks!