eee
This commit is contained in:
@@ -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/');
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user