SharpConfig -> FileConfig
This commit is contained in:
parent
a65579bf9d
commit
8cfa07bc8c
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ namespace Misuzu;
|
||||||
use Index\Environment;
|
use Index\Environment;
|
||||||
use Index\Data\DbTools;
|
use Index\Data\DbTools;
|
||||||
use Syokuhou\DbConfig;
|
use Syokuhou\DbConfig;
|
||||||
use Syokuhou\SharpConfig;
|
use Syokuhou\FileConfig;
|
||||||
|
|
||||||
define('MSZ_STARTUP', microtime(true));
|
define('MSZ_STARTUP', microtime(true));
|
||||||
define('MSZ_ROOT', __DIR__);
|
define('MSZ_ROOT', __DIR__);
|
||||||
|
@ -23,7 +23,7 @@ Environment::setDebug(MSZ_DEBUG);
|
||||||
mb_internal_encoding('UTF-8');
|
mb_internal_encoding('UTF-8');
|
||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
|
|
||||||
$cfg = SharpConfig::fromFile(MSZ_CONFIG . '/config.cfg');
|
$cfg = FileConfig::fromFile(MSZ_CONFIG . '/config.cfg');
|
||||||
|
|
||||||
if($cfg->hasValues('sentry:dsn'))
|
if($cfg->hasValues('sentry:dsn'))
|
||||||
(function($cfg) {
|
(function($cfg) {
|
||||||
|
|
Loading…
Reference in a new issue