class RequestSharedData

Constants

protected CONTEXT_KEY

The coroutine context key for request-scoped shared view data.

Methods

static array
all()

Get the shared data for the current request.

static mixed
scope(array $data, Closure $callback)

Run a callback with additional request-scoped shared data.

Details

at line 20
static array all()

Get the shared data for the current request.

Return Value

array

at line 28
static mixed scope(array $data, Closure $callback)

Run a callback with additional request-scoped shared data.

Parameters

array $data
Closure $callback

Return Value

mixed