Event bus basics
This commit is contained in:
parent
1440ec51b7
commit
87e8af3f72
8 changed files with 88 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue