12 lines
373 B
Python
12 lines
373 B
Python
from injector import Binder, Module, singleton
|
|
|
|
from .services.AiService import AiService
|
|
from .websocket import DashboardConnectionManager
|
|
|
|
|
|
class InjectorModule(Module):
|
|
def configure(self, binder: Binder) -> None:
|
|
self.__class__.instance = self
|
|
binder.bind(AiService, scope=singleton)
|
|
binder.bind(DashboardConnectionManager, scope=singleton)
|