public function __construct(Config $config, Ticket $ticket, Cache $cache = null) { parent::__construct($config->get('app_id'), $config->get('secret'), $cache); $this->ticket = $ticket; }
public function __construct($appId, OpenPlatform $openPlatform, $componentRefreshToken) { parent::__construct($appId, ''); $this->openPlatform = $openPlatform; $this->componentRefreshToken = $componentRefreshToken; }
public function __construct(OpenPlatform $openPlatform, $queryAuthCode) { parent::__construct('wx570bc396a51b8ff8', ''); $this->openPlatform = $openPlatform; $this->queryAuthCode = $queryAuthCode; }