trait SessionEnvTypeSwitcher (View source)

Implements switching user session into Test and Dev environment types

Methods

public
bool
setSessionEnvType(HTTPRequest $request)

Checks whether the request has GET flags to control environment type and amends the user session accordingly

Details

bool setSessionEnvType(HTTPRequest $request)

Checks whether the request has GET flags to control environment type and amends the user session accordingly

Parameters

HTTPRequest $request

Return Value

bool

true if changed the user session state, false otherwise