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()) { // 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); }