mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Deprecate global autowiring function
This commit is contained in:
parent
9e5a27d046
commit
2a4004856f
|
@ -194,8 +194,9 @@ private QualifierType createOrResolveInstance(MemberType, QualifierType, bool cr
|
||||||
* Autowire the given instance using the globally available dependency container.
|
* Autowire the given instance using the globally available dependency container.
|
||||||
*
|
*
|
||||||
* See_Also: DependencyContainer
|
* See_Also: DependencyContainer
|
||||||
|
* Deprecated: Using the global container is undesired. See DependencyContainer.getInstance().
|
||||||
*/
|
*/
|
||||||
public void globalAutowire(Type)(Type instance) {
|
public deprecated void globalAutowire(Type)(Type instance) {
|
||||||
DependencyContainer.getInstance().autowire(instance);
|
DependencyContainer.getInstance().autowire(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue