Skip to content

Commit

Permalink
add privateContainer back
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmcd committed Jul 18, 2018
1 parent 6a54f1e commit be2d952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Flash/Extensions/Response+Flash.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vapor

public extension Response {
public func flash(_ type: Flash.Kind, _ message: String) -> Response {
if let container = try? make(FlashContainer.self) {
if let container = try? privateContainer.make(FlashContainer.self) {
container.flashes.append(.init(type, message))
}
return self
Expand Down

0 comments on commit be2d952

Please sign in to comment.