/** * @param Model $model **/ public function addParamsToModel(Model $model) { if ($this->version == '1.1') { $model->set('openid.ns.sreg', self::NAMESPACE_1_1); } $model->set('openid.sreg.optional', implode(',', $this->params)); }
/** * @param Model $model **/ public function addParamsToModel(Model $model) { $model->set('openid.ns.ax', self::NAMESPACE_1_0)->set('openid.ax.mode', 'fetch_request')->set('openid.ax.required', implode(',', $this->params))->set('openid.ax.type.country', 'http://axschema.org/contact/country/home')->set('openid.ax.type.email', 'http://axschema.org/contact/email')->set('openid.ax.type.firstname', 'http://axschema.org/namePerson/first')->set('openid.ax.type.lastname', 'http://axschema.org/namePerson/last')->set('openid.ax.type.language', 'http://axschema.org/pref/language'); }