public function emit($event, array $args)
    {
        $this->logger->debug('Sending a new message', ['event' => $event, 'args' => $args]);
        $this->engine->emit($event, $args);

        return $this;
    }
public function emit($event, array $args)
    {
        $this->logger->debug('Sending a new message', ['event' => $event, 'args' => $args]);
        $this->engine->emit($event, $args);

        return $this;
    }
public function emit ( $ event , array $ args ) { $ this -> logger -> debug ( 'Sending a new message' , [ 'event' => $ event , 'args' => $ args ] ) ; $ this -> engine -> emit ( $ event , $ args ) ; return $ this ; }
Emits a message through the engine

@param string $event
@param array  $args

@return $this
Emits a message through the engine