public function __construct(array $options = array()) { // Now make sure we have the default scope to get user data empty($options['scope']) and $options['scope'] = array('https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'); // Array it if its string $options['scope'] = (array) $options['scope']; parent::__construct($options); }
public function __construct(array $options = array()) { if (empty($options['scope'])) { $options['scope'] = array('r_basicprofile', 'r_emailaddress'); } // Array it if its string $options['scope'] = (array) $options['scope']; parent::__construct($options); }
public function __construct(array $options = array()) { empty($options['scope']) and $options['scope'] = array('https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'); $options['scope'] = (array) $options['scope']; parent::__construct($options); }
public function __construct(array $options = array()) { empty($options['scope']) and $options['scope'] = 'basic'; $options['scope'] = (array) $options['scope']; parent::__construct($options); }