object Play

High-level API to access Play global features.

Source
Play.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Play
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit def materializer(implicit app: Application): Materializer

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

  2. def routesCompilerMaybeApplication: Option[Application]
  3. 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.

    app

    the application to start

  4. def stop(app: Application): Unit

    Stops the given application.

Deprecated Value Members

  1. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7.0) Use the MessagesApi itself

  2. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7.0) Use the MessagesApi itself

  3. 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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.7.0) Use the MessagesApi itself