This commit is contained in:
2025-12-18 15:39:47 +08:00
parent 377a9c17c3
commit f6f94aff32
4 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -54,10 +54,10 @@ class Application extends BaseApplication
*/
public function init(): void
{
$this->errorHandler->registerShutdownHandler(config('error.shutdown', []));
$this->errorHandler->registerExceptionHandler(config('error.exception', []));
$this->errorHandler->registerErrorHandler(config('error.error', []));
$this->id = config('id', uniqid('id.'));
$this->errorHandler->registerShutdownHandler(config('site.error.shutdown', []));
$this->errorHandler->registerExceptionHandler(config('site.error.exception', []));
$this->errorHandler->registerErrorHandler(config('site.error.error', []));
$this->id = config('site.id', uniqid('id.'));
$this->provider->on(OnBeforeCommandExecute::class, [$this, 'beforeCommandExecute']);
}
@@ -73,7 +73,7 @@ class Application extends BaseApplication
if (!($beforeCommandExecute->command instanceof ServerCommand)) {
$scanner = $this->container->get(Scanner::class);
$scanner->load_directory(APP_PATH . 'app/');
} else if (config('reload.hot', false) === false) {
} else if (config('site.reload.hot', false) === false) {
$scanner = $this->container->get(Scanner::class);
$scanner->load_directory(APP_PATH . 'app/');
}
+1 -1
View File
@@ -48,7 +48,7 @@ class StdoutLogger extends Component
{
parent::__construct();
$this->logger = new Logger(\config('id'));
$this->logger = new Logger(\config('site.id'));
$this->levels = [
'debug' => $this->logger::DEBUG,
'info' => $this->logger::INFO,