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); }
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); }