Example #1
0
 /**
  * @param CM_Log_Context $context
  */
 public function merge(CM_Log_Context $context)
 {
     if ($computerInfo = $context->getComputerInfo()) {
         $this->setComputerInfo($computerInfo);
     }
     if ($httpRequest = $context->getHttpRequest()) {
         $this->setHttpRequest($httpRequest);
     }
     if ($getUserClosure = $context->_getUserClosure) {
         $this->setUserWithClosure($getUserClosure);
     }
     if ($exception = $context->getException()) {
         $this->setException($exception);
     }
     $extra = array_merge($this->getExtra(), $context->getExtra());
     $this->setExtra($extra);
 }