/**
  * @return Config
  */
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
 public function query()
 {
     $conn = $this->connection();
     if (!$conn) {
         \DatabaseConfig::instance();
         //print_r(\DB\Config::instance());
     }
     return $conn->query();
 }