English
php
events
observer
event-dispatcher
shinobi-apps-framework
PHP event dispatcher: priority queues and wildcard listeners
Shinobi Apps framework EventDispatcher: addListener with priority (higher = earlier). addWildcardListener('borna.*') matches any event with that prefix. getSortedListeners merges exact + wildcard entries, usort by priority, caches result per event name. Listener exceptions: WARNING-level log + continue in production, re-throw in development. isPropagationStopped() allows listener chain short-circuit. EventDispatcher::emit in QueueManager catches listener failures (broken subscriber never sinks job execution).