protected function createEvent($name, CommandInterface $command)
	{
	    $event = new ServiceEvent();
	    $event->setName($name);
	    $event->setCommand($command);
	    $event->setParams($command->getParams());

	    return $event;
	}
protected function createEvent($name, CommandInterface $command)
	{
	    $event = new ServiceEvent();
	    $event->setName($name);
	    $event->setCommand($command);
	    $event->setParams($command->getParams());

	    return $event;
	}
protected function createEvent ( $ name , CommandInterface $ command ) { $ event = new ServiceEvent ( ) ; $ event -> setName ( $ name ) ; $ event -> setCommand ( $ command ) ; $ event -> setParams ( $ command -> getParams ( ) ) ; return $ event ; }
Create a new service event

@param string $name
@param CommandInterface $command
@return \ValuSo\Broker\ServiceEvent
Create a new service event