Event bus basics

This commit is contained in:
Piotr Dec 2025-10-31 00:01:45 +01:00
parent 1440ec51b7
commit 87e8af3f72
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
8 changed files with 88 additions and 16 deletions

View file

@ -1,6 +1,7 @@
from injectable import inject
from app.core.core import WebhookProcessor
from app.events import SimpleEventBus
class AutowireSupport:
@ -8,3 +9,7 @@ class AutowireSupport:
@staticmethod
def webhook_processor():
return inject(WebhookProcessor)
@staticmethod
def event_bus():
return inject(SimpleEventBus)