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.
1 parent 3843966 commit a0834e0Copy full SHA for a0834e0
README.md
@@ -60,6 +60,13 @@ third_container = DependencyContainer.get_instance(name="third_container")
60
dependency_container.register_transient(SomeInterface, SomeClass)
61
dependency_container.register_scoped(AnotherInterface, AnotherClass)
62
dependency_container.register_singleton(ThirdInterface, ThirdClass)
63
+
64
+# Registering dependencies with constructor arguments
65
+dependency_container.register_transient(
66
+ SomeInterface,
67
+ SomeClass,
68
+ constructor_args={"arg1": value1, "arg2": value2}
69
+)
70
```
71
72
### Resolving dependencies using the container
0 commit comments