@@ -44,11 +44,6 @@ def get_core_module(app_module: t.Union[t.Type, t.Any], config: Config) -> t.Typ
4444 @Module (
4545 modules = [app_module ],
4646 providers = [
47- ProviderConfig (
48- IExceptionMiddlewareService ,
49- use_class = ExceptionMiddlewareService ,
50- export = True ,
51- ),
5247 ProviderConfig (
5348 Config ,
5449 use_value = config ,
@@ -61,6 +56,11 @@ def get_core_module(app_module: t.Union[t.Type, t.Any], config: Config) -> t.Typ
6156 ),
6257 export = True ,
6358 ),
59+ ProviderConfig (
60+ IExceptionMiddlewareService ,
61+ use_class = ExceptionMiddlewareService ,
62+ export = True ,
63+ ),
6464 ProviderConfig (
6565 IExecutionContextFactory , use_class = ExecutionContextFactory , export = True
6666 ),
@@ -91,7 +91,6 @@ def get_core_module(app_module: t.Union[t.Type, t.Any], config: Config) -> t.Typ
9191 ProviderConfig (
9292 IInterceptorsConsumer , use_value = EllarInterceptorConsumer , export = True
9393 ),
94- ProviderConfig (Reflector , use_value = reflector , export = True ),
9594 ProviderConfig (IGuardsConsumer , use_class = GuardConsumer , export = True ),
9695 ProviderConfig (IIdentitySchemes , use_class = AppIdentitySchemes , export = True ),
9796 ProviderConfig (
@@ -105,8 +104,8 @@ def get_core_module(app_module: t.Union[t.Type, t.Any], config: Config) -> t.Typ
105104 ],
106105 )
107106 class EllarCoreModule (IApplicationReady , IApplicationStartup , IApplicationShutdown ):
108- def __init__ (self , config : Config , injector : EllarInjector ) -> None :
109- self .config = config
107+ def __init__ (self , _config : Config , injector : EllarInjector ) -> None :
108+ self .config = _config
110109 self .injector = injector
111110
112111 def on_ready (self , app : "App" ) -> None :
0 commit comments