mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
fix styles
This commit is contained in:
@@ -196,8 +196,8 @@ function sql_builder(string $name = '')
|
|||||||
* 传入数组,设置配置项
|
* 传入数组,设置配置项
|
||||||
* 不传参数,返回配置容器
|
* 不传参数,返回配置容器
|
||||||
*
|
*
|
||||||
* @param array|string|null $key 键名
|
* @param null|array|string $key 键名
|
||||||
* @param mixed|null $default 默认值
|
* @param null|mixed $default 默认值
|
||||||
* @return mixed|void|ZMConfig
|
* @return mixed|void|ZMConfig
|
||||||
*/
|
*/
|
||||||
function config(array|string $key = null, mixed $default = null)
|
function config(array|string $key = null, mixed $default = null)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Bootstrap;
|
namespace ZM\Bootstrap;
|
||||||
|
|
||||||
use OneBot\Driver\ExceptionHandler;
|
use OneBot\Driver\ExceptionHandler;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Bootstrap;
|
namespace ZM\Bootstrap;
|
||||||
|
|
||||||
use OneBot\Driver\Workerman\Worker;
|
use OneBot\Driver\Workerman\Worker;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Bootstrap;
|
namespace ZM\Bootstrap;
|
||||||
|
|
||||||
class LoadGlobalDefines
|
class LoadGlobalDefines
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Bootstrap;
|
namespace ZM\Bootstrap;
|
||||||
|
|
||||||
use ZM\Event\EventProvider;
|
use ZM\Event\EventProvider;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Bootstrap;
|
namespace ZM\Bootstrap;
|
||||||
|
|
||||||
use ZM\Logger\ConsoleLogger;
|
use ZM\Logger\ConsoleLogger;
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Bootstrap;
|
namespace ZM\Bootstrap;
|
||||||
|
|
||||||
class SetInternalTimezone
|
class SetInternalTimezone
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace ZM\Exception;
|
namespace ZM\Exception;
|
||||||
|
|
||||||
use OneBot\Driver\ExceptionHandler;
|
use OneBot\Driver\ExceptionHandler;
|
||||||
use Throwable;
|
|
||||||
|
|
||||||
class Handler extends ExceptionHandler
|
class Handler extends ExceptionHandler
|
||||||
{
|
{
|
||||||
@@ -13,7 +14,7 @@ class Handler extends ExceptionHandler
|
|||||||
// 将会在稍后修复
|
// 将会在稍后修复
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(Throwable $e): void
|
public function handle(\Throwable $e): void
|
||||||
{
|
{
|
||||||
if ($e instanceof ZMKnownException) {
|
if ($e instanceof ZMKnownException) {
|
||||||
// 如果是已知异常,则可以输出问题说明和解决方案
|
// 如果是已知异常,则可以输出问题说明和解决方案
|
||||||
|
|||||||
@@ -27,13 +27,10 @@ use ZM\Event\Listener\ManagerEventListener;
|
|||||||
use ZM\Event\Listener\MasterEventListener;
|
use ZM\Event\Listener\MasterEventListener;
|
||||||
use ZM\Event\Listener\WorkerEventListener;
|
use ZM\Event\Listener\WorkerEventListener;
|
||||||
use ZM\Event\Listener\WSEventListener;
|
use ZM\Event\Listener\WSEventListener;
|
||||||
use ZM\Exception\ConfigException;
|
|
||||||
use ZM\Exception\InitException;
|
use ZM\Exception\InitException;
|
||||||
use ZM\Exception\ZMKnownException;
|
use ZM\Exception\ZMKnownException;
|
||||||
use ZM\Logger\ConsoleLogger;
|
|
||||||
use ZM\Logger\TablePrinter;
|
use ZM\Logger\TablePrinter;
|
||||||
use ZM\Process\ProcessStateManager;
|
use ZM\Process\ProcessStateManager;
|
||||||
use ZM\Bootstrap;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 框架入口类
|
* 框架入口类
|
||||||
|
|||||||
Reference in New Issue
Block a user