src/Graviton/RestBundle/Subscriber/RestEventSubscriber.php
public function onKernelRequest(GetResponseEvent $event, $name, EventDispatcherInterface $dispatcher)
    {
        $restEvent = $this->getEventObject($event);
        if ($restEvent instanceof RestEvent) {
            $dispatcher->dispatch("graviton.rest.request", $restEvent);
        }
    }
public function onKernelRequest(GetResponseEvent $event, $name, EventDispatcherInterface $dispatcher)
    {
        $restEvent = $this->getEventObject($event);
        if ($restEvent instanceof RestEvent) {
            $dispatcher->dispatch("graviton.rest.request", $restEvent);
        }
    }
public function onKernelRequest ( GetResponseEvent $ event , $ name , EventDispatcherInterface $ dispatcher ) { $ restEvent = $ this -> getEventObject ( $ event ) ; if ( $ restEvent instanceof RestEvent ) { $ dispatcher -> dispatch ( "graviton.rest.request" , $ restEvent ) ; } }
Handler for kernel.request events

@param GetResponseEvent         $event      Event
@param string                   $name       Event name
@param EventDispatcherInterface $dispatcher Event dispatcher

@return void
Handler for kernel . request events