예제 #1
0
 /**
  * Constructor.
  *
  * @param string  $appId
  * @param string  $secret
  * @param Request $request
  * @param Http    $http
  */
 public function __construct($appId, $secret, Request $request, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->request = $request;
     $this->http = $http->setExpectedException(OAuthHttpException::class);
 }
예제 #2
0
파일: Js.php 프로젝트: khsing/wechat
 /**
  * Constructor.
  *
  * @param string $appId
  * @param string $secret
  * @param Cache  $cache
  * @param Http   $http
  */
 public function __construct($appId, $secret, Cache $cache, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->cache = $cache;
     $this->http = $http->setExpectedException(JsHttpException::class);
 }
예제 #3
0
파일: Client.php 프로젝트: heyjun/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');
 }
예제 #4
0
파일: SDK.php 프로젝트: heyjun/wechat
 /**
  * Constructor.
  *
  * @param string $appId
  * @param string $secret
  * @param Cache  $cache
  * @param Http   $http
  */
 public function __construct($appId, $secret, Cache $cache, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->cache = $cache;
     $this->http = $http->setExpectedException('EasyWeChat\\Js\\JsHttpException');
 }
예제 #5
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(MaterialHttpException::class);
 }
예제 #6
0
파일: Manager.php 프로젝트: heyjun/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Store\\StoreHttpException');
 }
예제 #7
0
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http, Transformer $transformer)
 {
     $this->http = $http->setExpectedException(StaffHttpException::class);
     $this->transformer = $transformer;
 }
예제 #8
0
파일: Stats.php 프로젝트: heivin/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(EasyWeChat\Stats\StatsHttpException::class);
 }
예제 #9
0
파일: Notice.php 프로젝트: keepeye/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(NoticeHttpException::class);
     $this->messageBackup = $this->message;
 }
예제 #10
0
파일: Group.php 프로젝트: heyjun/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\User\\GroupHttpException');
 }
예제 #11
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException('EasyWeChat\\Semantic\\SemanticHttpException');
 }
예제 #12
0
파일: Card.php 프로젝트: raymonder/wechat
 /**
  * Constructor.
  *
  * @param Http  $http
  * @param Cache $cache
  */
 public function __construct(Http $http, Cache $cache)
 {
     $this->http = $http->setExpectedException(CardHttpException::class);
     $this->cache = $cache;
 }
예제 #13
0
파일: Card.php 프로젝트: hexing-w/wechat
 /**
  * Constructor.
  *
  * @param Http  $http
  * @param Cache $cache
  */
 public function __construct(Http $http, Cache $cache)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Card\\CardHttpException');
     $this->cache = $cache;
 }
예제 #14
0
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http, Transformer $transformer)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Staff\\StaffHttpException');
     $this->transformer = $transformer;
 }
예제 #15
0
파일: API.php 프로젝트: keepeye/wechat
 /**
  * Constructor.
  *
  * @param Merchant $merchant
  * @param Http     $http
  */
 public function __construct(Merchant $merchant, Http $http)
 {
     $this->merchant = $merchant;
     $this->http = $http->setExpectedException(PaymentHttpException::class);
 }
예제 #16
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException(SemanticHttpException::class);
 }