Esempio n. 1
0
 public function __construct(array $options = array())
 {
     if (!isset($options['scope'])) {
         $options['scope'] = array('https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email', 'https://gdata.youtube.com');
     }
     parent::__construct($options);
 }
Esempio n. 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('https://www.google.com/m8/feeds', 'http://gdata.youtube.com');
     // Array it if its string
     $options['scope'] = (array) $options['scope'];
     parent::__construct($options);
 }