- remove `static_resolve` config from DependencyGraph
- remove `factory` method frmo DependencyGraph
- add a new `self_inejct` config to DependencyGraph
- add `register_dependent` config to DependencyGraph, SyncScope, AsyncScope
- inject now supports both as annotated annotation and as default value, as well as nested annotated annotation
py
class APP:
def __init__(self, graph: DependencyGraph):
self._graph = graph
self._graph.register_dependent(self)
dg = DependencygGraph()
app = APP(graph)
app.register
async def login(app: APP):
assert app is app