These docs are for v2.0. Click to read the latest docs for v7.0.

Environment

The environment defines the key components needed by a Silhouette application. It consists of the identity implementation, the authenticator implementation, the identity service implementation, the authenticator service implementation, the provider implementation and the event bus implementation.

A configured environment is needed in every derived Silhouette controller implementation and should be provided through dependency injection. Silhouette plays well with both compile time and runtime dependency injection. You can find examples of both approaches on the example page.