/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(' ', ['profile', 'email']); } }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->scope === null) { $this->scope = implode(' ', ['profile', 'email', 'placesLived', 'organizations']); } }
public function init() { parent::init(); $this->_client = new \Google_Client(); $this->_client->setClientId($this->clientId); $this->_client->setClientSecret($this->clientSecret); $this->_client->setRedirectUri($this->returnUrl); $this->_client->setScopes($this->scope); }