Merge pull request #146 from zhamao-robot/refactor-config

基于 LibOB Config 类重构 ZMConfig
This commit is contained in:
sunxyw
2022-08-23 23:42:30 +08:00
committed by GitHub
17 changed files with 591 additions and 487 deletions

View File

@@ -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) {