public function forwardEvent(Event $event, $name)
    {
        if (!$this->enabled) {
            return;
        }

        $this->pushServer->send($this->eventSerializer->serializeEvent($name, $event));
    }
public function forwardEvent(Event $event, $name)
    {
        if (!$this->enabled) {
            return;
        }

        $this->pushServer->send($this->eventSerializer->serializeEvent($name, $event));
    }
public function forwardEvent ( Event $ event , $ name ) { if ( ! $ this -> enabled ) { return ; } $ this -> pushServer -> send ( $ this -> eventSerializer -> serializeEvent ( $ name , $ event ) ) ; }
Forward an Event to Push Server.

@param Event $event
@param string $name
Forward an Event to Push Server .