Skip to content

Commit

Permalink
Merge pull request #451 from guardian/fix-dropping-play-2.7
Browse files Browse the repository at this point in the history
Fix use of `withFallback` introduced when dropping Play 2.7
  • Loading branch information
rtyley authored Apr 9, 2024
2 parents 61f738d + d1a385e commit 7b51df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion play/play-v28/RotatingSecretComponents.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait RotatingSecretComponents extends BuiltInComponentsFromContext {
override def configuration: Configuration = {
val nonRotatingSecretOnlyUsedToSatisfyConfigChecks = secretStateSupplier.snapshot().secrets.active

super.configuration.withFallback(Configuration("play.http.secret.key" -> nonRotatingSecretOnlyUsedToSatisfyConfigChecks))
Configuration("play.http.secret.key" -> nonRotatingSecretOnlyUsedToSatisfyConfigChecks).withFallback(super.configuration)
}

override lazy val requestFactory: RequestFactory =
Expand Down

0 comments on commit 7b51df2

Please sign in to comment.