if ($this->sCurrency === false
) { throw new RuntimeException('Currency could not be fetched correctly.'
);
} $currency =
Shopware()->
Models()->
getRepository(Currency::
class)->
find($this->sCurrency
['id'
]);
$shop->
setCurrency($currency);
Shopware()->
Container()->
get(ShopRegistrationServiceInterface::
class)->
registerShop($shop);
if ($this->sCustomergroup !== false
) { Shopware()->
Container()->
get('session'
)->
offsetSet('sUserGroup',
$this->sCustomergroup
['groupkey'
]);
} $this->contextService->
initializeContext();
$this->shop =
$shop;
$this->sSYSTEM->sCONFIG =
$this->config;
} /**
* @return void
*/
public function sInitSmarty() {