karl/app/core/injects.py
2025-10-31 00:01:45 +01:00

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)