Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #368 from akkie/master
Browse files Browse the repository at this point in the history
Release version 3.0.0-RC1
  • Loading branch information
akkie committed Jun 3, 2015
2 parents ead4231 + cc4ffcf commit ae82b22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## 3.0
## 3.0 (2015-06-03)

- Update to Play 2.4
- Fix a lot of inconsistencies in the API
- A lot of API enhancements

## 2.0 (2015-03-28)

Expand Down
2 changes: 1 addition & 1 deletion project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object BasicSettings extends AutoPlugin {

override def projectSettings = Seq(
organization := "com.mohiva",
version := "3.0.0-SNAPSHOT",
version := "3.0.0-RC1",
resolvers ++= Dependencies.resolvers,
scalaVersion := Dependencies.Versions.scalaVersion,
crossScalaVersions := Dependencies.Versions.crossScala,
Expand Down
13 changes: 8 additions & 5 deletions silhouette/app/com/mohiva/play/silhouette/api/Environment.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ import scala.concurrent.ExecutionContext

/**
* The environment needed to instantiate a Silhouette controller.
*
* @tparam I The type of the identity.
* @tparam A The type of the authenticator.
*/
trait Environment[I <: Identity, T <: Authenticator] extends ExecutionContextProvider {
trait Environment[I <: Identity, A <: Authenticator] extends ExecutionContextProvider {

/**
* Gets the identity service implementation.
Expand All @@ -37,7 +40,7 @@ trait Environment[I <: Identity, T <: Authenticator] extends ExecutionContextPro
*
* @return The authenticator service implementation.
*/
def authenticatorService: AuthenticatorService[T]
def authenticatorService: AuthenticatorService[A]

/**
* Gets the list of request providers.
Expand All @@ -58,11 +61,11 @@ trait Environment[I <: Identity, T <: Authenticator] extends ExecutionContextPro
* The companion object.
*/
object Environment {
def apply[I <: Identity, T <: Authenticator](
def apply[I <: Identity, A <: Authenticator](
identityServiceImpl: IdentityService[I],
authenticatorServiceImpl: AuthenticatorService[T],
authenticatorServiceImpl: AuthenticatorService[A],
requestProvidersImpl: Seq[RequestProvider],
eventBusImpl: EventBus)(implicit ec: ExecutionContext) = new Environment[I, T] {
eventBusImpl: EventBus)(implicit ec: ExecutionContext) = new Environment[I, A] {
val identityService = identityServiceImpl
val authenticatorService = authenticatorServiceImpl
val requestProviders = requestProvidersImpl
Expand Down

0 comments on commit ae82b22

Please sign in to comment.