1818from ellar .core .routing import ApplicationRouter
1919from ellar .core .templating import AppTemplating , Environment
2020from ellar .core .versioning import VERSIONING , BaseAPIVersioning
21- from ellar .di .injector import StarletteInjector
21+ from ellar .di .injector import EllarInjector
2222from ellar .logger import logger
2323from ellar .services .reflector import Reflector
2424from ellar .types import ASGIApp , T , TReceive , TScope , TSend
@@ -28,7 +28,7 @@ class App(AppTemplating):
2828 def __init__ (
2929 self ,
3030 config : Config ,
31- injector : StarletteInjector ,
31+ injector : EllarInjector ,
3232 on_startup_event_handlers : t .Optional [t .Sequence [EventHandler ]] = None ,
3333 on_shutdown_event_handlers : t .Optional [t .Sequence [EventHandler ]] = None ,
3434 lifespan : t .Optional [t .Callable [["App" ], t .AsyncContextManager ]] = None ,
@@ -38,8 +38,8 @@ def __init__(
3838 ):
3939 assert isinstance (config , Config ), "config must instance of Config"
4040 assert isinstance (
41- injector , StarletteInjector
42- ), "injector must instance of StarletteInjector "
41+ injector , EllarInjector
42+ ), "injector must instance of EllarInjector "
4343
4444 # The lifespan context function is a newer style that replaces
4545 # on_startup / on_shutdown handlers. Use one or the other, not both.
@@ -49,7 +49,7 @@ def __init__(
4949
5050 self ._config = config
5151 # TODO: read auto_bind from configure
52- self ._injector : StarletteInjector = injector
52+ self ._injector : EllarInjector = injector
5353
5454 self ._global_guards = [] if global_guards is None else list (global_guards )
5555 self ._exception_handlers = dict (t .cast (dict , self .config .EXCEPTION_HANDLERS ))
@@ -141,7 +141,7 @@ def use_global_guards(self, *guards: "GuardCanActivate") -> None:
141141 self ._global_guards .extend (guards )
142142
143143 @property
144- def injector (self ) -> StarletteInjector :
144+ def injector (self ) -> EllarInjector :
145145 return self ._injector
146146
147147 @property
0 commit comments