예제 #1
0
 protected function generateCacheStore()
 {
     switch ($this->config->get('database.driver')) {
         case 'sqlite':
             return new SQLite($this->config['email'], $this->configPath);
             break;
         case 'mysql':
             return new MySQL($this->config['database.host'], $this->config['database.database'], $this->config['database.username'], $this->config['database.password']);
             break;
     }
 }