eee
This commit is contained in:
@@ -89,7 +89,7 @@ class Kiri
|
||||
if (Kiri::getPlatform()->isMac()) {
|
||||
return;
|
||||
}
|
||||
$name = '[' . \config('id', 'system-service') . ']';
|
||||
$name = '[' . \config('site.id', 'system-service') . ']';
|
||||
if (!empty($prefix)) {
|
||||
$name .= '.' . $prefix;
|
||||
}
|
||||
@@ -104,7 +104,7 @@ class Kiri
|
||||
public static function getStoragePath(): string
|
||||
{
|
||||
$default = APP_PATH . 'storage' . DIRECTORY_SEPARATOR;
|
||||
$path = \config('storage', $default);
|
||||
$path = \config('site.log.path', $default);
|
||||
if (!is_dir($path)) {
|
||||
mkdir($path, 0777, true);
|
||||
}
|
||||
|
||||
+1
-1
@@ -769,7 +769,7 @@ if (!function_exists('process_name_set')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$name = \config('id', 'system') . '[' . $pid . ']';
|
||||
$name = \config('site.id', 'system') . '[' . $pid . ']';
|
||||
if (!empty($prefix)) {
|
||||
$name .= '.' . $prefix;
|
||||
}
|
||||
|
||||
@@ -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