예제 #1
0
파일: Auth.php 프로젝트: partychen/wechat
 /**
  * Constructor.
  *
  * @param string $appId
  * @param string $secret
  * @param Input  $input
  * @param Http   $http
  */
 public function __construct($appId, $secret, Input $input, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->input = $input;
     $this->http = $http->setExpectedException('EasyWeChat\\OAuth\\OAuthHttpException');
 }
예제 #2
0
파일: Stats.php 프로젝트: hexing-w/wechat
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Stats\\StatsHttpException');
 }