public function __construct(\MonkeyData\EshopXmlFeedGenerator\XmlGenerator\Config $config = null)
 {
     $this->checkConfig();
     if ($this->config['database']['use']) {
         $this->connection = MonkeyDataDbHelper::getInstance($this->config['database']);
     }
     $this->orders = new OrderList();
     $this->list_of_product_list = new OrderProductsList();
     if ($config === null) {
         $config = new Config();
     }
     $this->setConfig($config);
 }
 public function __construct()
 {
     $this->checkConfig();
     if ($this->config['database']['use']) {
         $this->connection = MonkeyDataDbHelper::getInstance($this->config['database']);
     }
     $this->orders = new OrderList();
     $this->list_of_product_list = new OrderProductsList();
 }