public function __construct() { global $config; $this->db = Application::initDB(); $this->cache = Application::initCache(); $this->config = $config; }