상속: extends Symfony\Component\HttpFoundation\Response
예제 #1
0
파일: Event.php 프로젝트: thenbsp/wechat
 /**
  * response message entity
  */
 public function setResponse(Entity $entity)
 {
     $body = $entity->getBody();
     $body['ToUserName'] = $this['FromUserName'];
     $body['FromUserName'] = $this['ToUserName'];
     $body['MsgType'] = $entity->getType();
     $body['CreateTime'] = time();
     $response = new XmlResponse($body);
     $response->send();
 }
예제 #2
0
파일: Notify.php 프로젝트: thenbsp/wechat
 /**
  * 响应 Xml
  */
 protected function xmlResponse(array $options)
 {
     $response = new XmlResponse($options);
     $response->send();
 }