PHP Class eZ\Bundle\EzPublishRestBundle\EventListener\RequestListener

Flags a REST request as such using the is_rest_request attribute.
Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
显示文件 Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
getSubscribedEvents ( ) : array
onKernelRequest ( GetResponseEvent $event ) If the request is a REST one, sets the is_rest_request request attribute.

Protected Methods

Method Description
hasRestPrefix ( Request $request ) : boolean

Method Details

getSubscribedEvents() public static method

public static getSubscribedEvents ( ) : array
return array

hasRestPrefix() protected method

protected hasRestPrefix ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
return boolean

onKernelRequest() public method

If the request is a REST one, sets the is_rest_request request attribute.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent