示例#1
0
 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);
 }
示例#2
0
 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('profile', 'email');
     // Array it if its string
     $options['scope'] = (array) $options['scope'];
     parent::__construct($options);
 }