Skip to content

Commit 009c2fa

Browse files
committed
ft: Added provider exports to better control Module dependencies and module tree manager
1 parent 66523ae commit 009c2fa

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

ellar/core/modules/ref/template.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ def __init__(
6666
config=config,
6767
)
6868

69-
# def _build_flatten_routes(self) -> None:
70-
# for router in self._routers:
71-
# # if isinstance(router, ModuleMount):
72-
# # # TODO: Allow users to choose whether to run flatten route of group routes together
73-
# # # router.build_child_routes()
74-
# # self._flatten_routes.append(router)
75-
# # continue
76-
# # if isinstance(router, BaseRoute):
77-
# # self._flatten_routes.append(router)
78-
# if isinstance(router, BaseRoute):
79-
# self._flatten_routes.append(router)
80-
8169
def initiate_module_build(self) -> None:
8270
super().initiate_module_build()
8371

ellar/di/injector/tree_manager.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,14 @@ def ref_type(self) -> str:
2727

2828
@property
2929
def exports(self) -> t.List[t.Type]:
30-
# TODO: make function available in ModuleSetup with exception
3130
return self.value.exports
3231

3332
@property
3433
def providers(self) -> t.Dict[t.Type, t.Type]:
35-
# TODO: make function available in ModuleSetup with exception
3634
return self.value.providers
3735

3836
@property
3937
def name(self) -> str:
40-
# TODO: make function available in ModuleSetup with exception
4138
return self.value.name
4239

4340
def __repr__(self) -> str:

0 commit comments

Comments
 (0)