protected function notifyEvent($command, $arguments, $return, $time = 0)
    {
        if ($this->eventDispatcher) {
            $event = new $this->eventClass();
            $event->setCommand($command)
                  ->setArguments($arguments)
                  ->setReturn($return)
                  ->setExecutionTime($time);

            $this->eventDispatcher->dispatch('amqp.command', $event);
        }
    }
protected function notifyEvent($command, $arguments, $return, $time = 0)
    {
        if ($this->eventDispatcher) {
            $event = new $this->eventClass();
            $event->setCommand($command)
                  ->setArguments($arguments)
                  ->setReturn($return)
                  ->setExecutionTime($time);

            $this->eventDispatcher->dispatch('amqp.command', $event);
        }
    }
protected function notifyEvent ( $ command , $ arguments , $ return , $ time = 0 ) { if ( $ this -> eventDispatcher ) { $ event = new $ this -> eventClass ( ) ; $ event -> setCommand ( $ command ) -> setArguments ( $ arguments ) -> setReturn ( $ return ) -> setExecutionTime ( $ time ) ; $ this -> eventDispatcher -> dispatch ( 'amqp.command' , $ event ) ; } }
Notify an event to the event dispatcher.

@param string $command   The command name
@param array  $arguments Args of the command
@param mixed  $return    Return value of the command
@param int    $time      Exec time
Notify an event to the event dispatcher .