protected function initConfig()
    {
        Container::unregister();

        $this->config = Container::get('gplcart\\core\\Config');
        $this->config->init();
        $this->db = $this->config->getDb();
    }
protected function initConfig()
    {
        Container::unregister();

        $this->config = Container::get('gplcart\\core\\Config');
        $this->config->init();
        $this->db = $this->config->getDb();
    }
protected function initConfig ( ) { Container :: unregister ( ) ; $ this -> config = Container :: get ( 'gplcart\\core\\Config' ) ; $ this -> config -> init ( ) ; $ this -> db = $ this -> config -> getDb ( ) ; }
Init configuration
It makes sure that we're using the database connection defined in the configuration file
Init configuration It makes sure that we re using the database connection defined in the configuration file