/** * @param Shopware\Models\Shop\Shop $shop * @return \Shopware_Components_Config */ public function setShop($shop) { $this->_shop = $shop; $this->load(); $this->offsetSet('host', $shop->getHost()); $this->offsetSet('basePath', $shop->getHost() . $shop->getBasePath()); if ($shop->getTitle() !== null) { $this->offsetSet('shopName', $shop->getTitle()); } return $this; }