$shop =
$repository->
getById($this->_order->order->language
);
if ($shop === null
) { throw new ModelNotFoundException(Shop::
class,
$this->_order->order->language
);
} if (!
empty($this->_order->order->currencyID
)) { $repository =
Shopware()->
Models()->
getRepository(Currency::
class);
$currency =
$repository->
find($this->_order->order->currencyID
);
if ($currency === null
) { throw new ModelNotFoundException(Currency::
class,
$this->_order->order->currencyID
);
} $shop->
setCurrency($currency);
} Shopware()->
Container()->
get(ShopRegistrationServiceInterface::
class)->
registerResources($shop);
} /**
* Set object configuration from array
*/
protected function setConfig(array
$config) { $this->_config =
$config;