Example #1
0
 public function __construct(OnlineShop_Framework_IndexService_Tenant_IConfig $tenantConfig)
 {
     $this->name = $tenantConfig->getTenantName();
     $this->tenantConfig = $tenantConfig;
     $this->columnConfig = $tenantConfig->getAttributeConfig();
     $this->searchColumnConfig = $tenantConfig->getSearchAttributeConfig();
     $this->db = \Pimcore\Resource::get();
 }
Example #2
0
 /**
  * @param OnlineShop_Framework_IndexService_Tenant_IConfig $tenantConfig
  */
 public function __construct(OnlineShop_Framework_IndexService_Tenant_IConfig $tenantConfig)
 {
     $this->tenantName = $tenantConfig->getTenantName();
     $this->tenantConfig = $tenantConfig;
     // init logger
     $this->logger = new \Zend_Log();
     if ($this->tenantConfig->getClientConfig('logging')) {
         $this->logger->addWriter(new Zend_Log_Writer_Stream($this->tenantConfig->getClientConfig('logOutput')));
     }
 }