Function autowire

Autowires members of a given instance using dependencies registered in the given container.

void autowire(Type) (
  shared(DependencyContainer) container,
  Type instance
);

All members of the given instance, which are annotated using the "Autowire" UDA, are autowired. Members can have any visibility (public, private, etc). All members are resolved using the given container. Qualifiers are used to determine the type of class to resolve for any member of instance.

See Also

Autowire