mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
replace legacy config
This commit is contained in:
@@ -7,7 +7,6 @@ namespace ZM\Store\MySQL;
|
||||
use Doctrine\DBAL\Driver as DoctrineDriver;
|
||||
use Doctrine\DBAL\Platforms\MySqlPlatform;
|
||||
use Doctrine\DBAL\Schema\MySqlSchemaManager;
|
||||
use ZM\Config\ZMConfig;
|
||||
|
||||
class MySQLDriver implements DoctrineDriver
|
||||
{
|
||||
@@ -34,7 +33,7 @@ class MySQLDriver implements DoctrineDriver
|
||||
|
||||
public function getDatabase($conn)
|
||||
{
|
||||
$conf = ZMConfig::get('global.mysql');
|
||||
$conf = config('global.mysql');
|
||||
|
||||
if ($conn instanceof MySQLConnection) {
|
||||
foreach ($conf as $v) {
|
||||
|
||||
Reference in New Issue
Block a user