We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
bind_scope
1 parent 43b002e commit a7f0bc4Copy full SHA for a7f0bc4
docs/scopes.rst
@@ -49,11 +49,11 @@ This can be used like so::
49
class MyClass:
50
pass
51
52
-Scopes are bound in modules with the :meth:`Binder.bind_scope` method::
+Scopes are bound in modules with the :meth:`Binder.install` method::
53
54
class MyModule(Module):
55
def configure(self, binder):
56
- binder.bind_scope(CustomScope)
+ binder.install(CustomScope)
57
58
Scopes can be retrieved from the injector, as with any other instance. They are singletons across the life of the injector::
59
0 commit comments