Beispiel #1
0
 /**
  * Create a new Facebook instance.
  *
  * @param Illuminate\Config\Repository            $config
  * @param Illuminate\Routing\Redirector           $redirect
  * @param Vinelab\Http\Client                     $http
  * @param Vinelab\Auth\Contracts\StoreInterface   $store
  * @param Vinelab\Auth\Contracts\ProfileInterface $profile
  */
 public function __construct(Config $config, Redirector $redirect, HttpClient $http, StoreInterface $store, ProfileInterface $profile, AccessTokenInterface $access_token)
 {
     parent::__construct($config);
     $this->config = $config;
     $this->redirect = $redirect;
     $this->http = $http;
     $this->store = $store;
     $this->profile = $profile;
     $this->access_token = $access_token;
 }
Beispiel #2
0
 public function __construct(Config $config, HttpClient $http, Redirector $redirect, StoreInterface $store, ProfileInterface $profile, OAuthSignatureInterface $signature, OAuthConsumerInterface $consumer, OAuthTokenInterface $token, OAuthInterface $oauth)
 {
     parent::__construct($config);
     $this->http = $http;
     $this->signature = $signature;
     $this->consumer = $consumer;
     $this->oauth = $oauth;
     $this->token = $token;
     $this->redirect = $redirect;
     $this->store = $store;
     $this->profile = $profile;
     $this->consumer->make($this->settings('consumer_key'), $this->settings('consumer_secret'));
 }