Updated to use Syokuhou config library.
This commit is contained in:
parent
dc90787214
commit
727d0650ce
18 changed files with 52 additions and 685 deletions
|
@ -3,7 +3,7 @@ namespace Misuzu;
|
|||
|
||||
use Index\Environment;
|
||||
use Index\Data\DbTools;
|
||||
use Misuzu\Config\DbConfig;
|
||||
use Syokuhou\DbConfig;
|
||||
|
||||
define('MSZ_STARTUP', microtime(true));
|
||||
define('MSZ_ROOT', __DIR__);
|
||||
|
@ -39,7 +39,7 @@ if(!empty($cfg['sentry-dsn'])) {
|
|||
$db = DbTools::create($cfg['dsn'] ?? 'null:');
|
||||
$db->execute('SET SESSION time_zone = \'+00:00\', sql_mode = \'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION\';');
|
||||
|
||||
$cfg = new DbConfig($db);
|
||||
$cfg = new DbConfig($db, 'msz_config');
|
||||
|
||||
Mailer::init($cfg->scopeTo('mail'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue