29 Seo\Service::register();
31 $authorizeUrl = Seo\Service::getAuthorizeLink();
32 $authorizeData = Seo\Service::getAuthorizeData(
36 $uri =
new Uri($authorizeUrl);
37 if(!empty($this->parameters[
'URL_PARAMETERS']))
39 $authorizeData[
'urlParameters'] = $this->parameters[
'URL_PARAMETERS'];
41 if($this->setup && $this->config)
43 $authorizeData[
'settings'] = Json::encode([
44 'setup' => $this->setup->toArray() + ($this->installs? $this->installs->toArray() : []),
45 'business_config' => $this->config->toArray(),
50 $uri->addParams($authorizeData);
51 return $uri->getLocator();