/** * initialize the gateway * @param \TheTwelve\Foursquare\HttpClient $client */ public function __construct(HttpClient $client) { parent::__construct($client); $this->userId = 'self'; }
/** * inject the minimum required dependencies * @param \TheTwelve\Foursquare\EndpointGateway $gateway * @param null $listId */ protected function injectListGatewayDependencies(EndpointGateway $gateway, $listId = null) { if ($listId) { $gateway->setListId($listId); } $gateway->setRequestUri($this->getRequestUri())->setToken($this->token)->setClientCredentials($this->clientId, $this->clientSecret); }
/** * initialize the authentication gateway * @param \TheTwelve\Foursquare\HttpClient $httpClient * @param \TheTwelve\Foursquare\Redirector $redirector */ public function __construct(HttpClient $httpClient, Redirector $redirector) { parent::__construct($httpClient); $this->redirector = $redirector; }