Fixes for build without config
This commit is contained in:
parent
a5aabdce2d
commit
86478a1264
56 changed files with 376 additions and 85 deletions
|
|
@ -39,8 +39,6 @@ if (!defined('IS_WIN')) {
|
|||
|
||||
require_once(ROOT_DIR . 'vendor/autoload.php');
|
||||
|
||||
\PHPCensor\ErrorHandler::register();
|
||||
|
||||
if (defined('IS_CONSOLE') && IS_CONSOLE) {
|
||||
$loggerConfig = LoggerConfig::newFromFile(APP_DIR . "loggerconfig.php");
|
||||
}
|
||||
|
|
@ -66,4 +64,4 @@ if (!defined('IS_CONSOLE')) {
|
|||
define('IS_CONSOLE', false);
|
||||
}
|
||||
|
||||
\PHPCensor\Helper\Lang::init($config);
|
||||
\PHPCensor\Helper\Lang::init($config, 'ru');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue