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