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

@ -11,11 +11,11 @@ class KarlApplication:
from starlette.types import Receive, Scope, Send
def __init__(self) -> None:
self._set_logging()
load_injection_container()
_app = FastAPI(title="Karl", version="0.1.0")
self._set_middlewares(_app)
self._set_routes(_app)
self._set_events(_app)
self._init_services()
self._app = _app
@ -58,10 +58,6 @@ class KarlApplication:
def _set_events(self, app: FastAPI):
pass
def _init_services(self):
logger = logging.getLogger(__name__)
load_injection_container()
def run():
return KarlApplication()