public function __construct() { $dbConfig = Config::getDbConfig(); $db_factory = new Factory($dbConfig); $this->db_adapter = $db_factory->getDBAdapter(); $cacheFactory = new CacheAdapter('redis'); $this->sql_helper = new Sql(); $this->cache_adapter = $cacheFactory->getCacheAdapter(); }