Class

eZ\Bundle\EzPublishRestBundle\EventListener\RequestListener

class RequestListener implements EventSubscriberInterface

REST request listener.

Flags a REST request as such using the isrestrequest attribute.

Constants

REST_PREFIX_PATTERN

Methods

static array getSubscribedEvents()

onKernelRequest(GetResponseEvent $event)

If the request is a REST one, sets the isrestrequest request attribute.

Details

at line 28
static public array getSubscribedEvents()

Return Value

array

at line 41
public onKernelRequest(GetResponseEvent $event)

If the request is a REST one, sets the isrestrequest request attribute.

Parameters

GetResponseEvent $event