mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-07 08:45:37 +08:00
update to 2.5.0-b3 (build 410)
This commit is contained in:
18
src/ZM/MySQL/MySQLWrapper.php
Normal file
18
src/ZM/MySQL/MySQLWrapper.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace ZM\MySQL;
|
||||
|
||||
|
||||
class MySQLWrapper
|
||||
{
|
||||
public $connection;
|
||||
|
||||
public function __construct() {
|
||||
$this->connection = MySQLManager::getConnection();
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
$this->connection->close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user