class ZoneSubscriber implements EventSubscriberInterface (View source)

Constants

PRIORITY

Methods

void
onKernelRequest(RequestEvent $event)

Kernel request listener callback.

string
setZone(Request $request)

Sets the request's zone if needed and returns it.

string
determineZone(Request $request)

Determine the zone and return it.

static array
getSubscribedEvents()

Return the events to subscribe to.

Details

void onKernelRequest(RequestEvent $event)

Kernel request listener callback.

Parameters

RequestEvent $event

Return Value

void

string setZone(Request $request)

Sets the request's zone if needed and returns it.

Parameters

Request $request

Return Value

string

protected string determineZone(Request $request)

Determine the zone and return it.

Parameters

Request $request

Return Value

string

static array getSubscribedEvents()

Return the events to subscribe to.

Return Value

array