SharpConfig -> FileConfig

This commit is contained in:
flash 2024-06-03 23:04:59 +00:00
parent a65579bf9d
commit 8cfa07bc8c

View file

@ -4,7 +4,7 @@ namespace Misuzu;
use Index\Environment;
use Index\Data\DbTools;
use Syokuhou\DbConfig;
use Syokuhou\SharpConfig;
use Syokuhou\FileConfig;
define('MSZ_STARTUP', microtime(true));
define('MSZ_ROOT', __DIR__);
@ -23,7 +23,7 @@ Environment::setDebug(MSZ_DEBUG);
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
$cfg = SharpConfig::fromFile(MSZ_CONFIG . '/config.cfg');
$cfg = FileConfig::fromFile(MSZ_CONFIG . '/config.cfg');
if($cfg->hasValues('sentry:dsn'))
(function($cfg) {