Beispiel #1
0
 public static function getDBCon()
 {
     if (empty(self::$db)) {
         self::$db = Service::get('db')->getConnection();
     }
     return self::$db;
 }
 public function __construct()
 {
     self::$db = ServiceContainer::get('database');
 }