Function registerContext

Register dependencies through an application context.

void registerContext(Context) (
  shared(DependencyContainer) container
);

An application context allows you to fine-tune dependency set-up and instantiation. It is mostly used for dependencies which come from an external library or when you don't want to use annotations to set-up dependencies in your classes.