Play

play.api.Play
object Play

High-level API to access Play global features.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Play.type

Members list

Value members

Concrete methods

def start(app: Application): Unit

Sets the global application instance.

Sets the global application instance.

If another app was previously started using this API and the global application is enabled, Play.stop will be called on the existing application.

Value parameters

app

the application to start

Attributes

def stop(app: Application): Unit

Stops the given application.

Stops the given application.

Attributes

Deprecated methods

def langCookieHttpOnly(implicit messagesApi: MessagesApi): Boolean

Returns whether the language cookie should have the HTTP only flag set.

Returns whether the language cookie should have the HTTP only flag set.

Attributes

Deprecated
true
def langCookieName(implicit messagesApi: MessagesApi): String

Returns the name of the cookie that can be used to permanently set the user's language.

Returns the name of the cookie that can be used to permanently set the user's language.

Attributes

Deprecated
true
def langCookieSecure(implicit messagesApi: MessagesApi): Boolean

Returns whether the language cookie should have the secure flag set.

Returns whether the language cookie should have the secure flag set.

Attributes

Deprecated
true

Implicits

Implicits

implicit def materializer(implicit app: Application): Materializer

A convenient function for getting an implicit materializer from the current application

A convenient function for getting an implicit materializer from the current application

Attributes