15 lines
287 B
Python
15 lines
287 B
Python
from injectable import inject
|
|
|
|
from app.core.core import WebhookProcessor
|
|
from app.events import SimpleEventBus
|
|
|
|
|
|
class AutowireSupport:
|
|
|
|
@staticmethod
|
|
def webhook_processor():
|
|
return inject(WebhookProcessor)
|
|
|
|
@staticmethod
|
|
def event_bus():
|
|
return inject(SimpleEventBus)
|