These docs are for v3.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 request provider implementations 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.