数据中心的API调用和rpc调用整合
This commit is contained in:
@@ -9,16 +9,19 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Aether\ApiExceptionHandler;
|
||||||
|
use Aether\RpcExceptionHandler;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'handler' => [
|
'handler' => [
|
||||||
'http' => [
|
'http' => [
|
||||||
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
||||||
Aether\AppExceptionHandler::class,
|
ApiExceptionHandler::class,
|
||||||
],
|
],
|
||||||
'jsonrpc-http' => [
|
'jsonrpc-http' => [
|
||||||
//Aether\Exception\AppExceptionHandler::class,
|
|
||||||
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
|
||||||
Aether\AppExceptionHandler::class,
|
RpcExceptionHandler::class,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Aether\ApiExceptionHandler;
|
|
||||||
use Aether\Middleware\RequestId;
|
use Aether\Middleware\RequestId;
|
||||||
use Aether\RpcExceptionHandler;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Hyperf.
|
* This file is part of Hyperf.
|
||||||
@@ -17,10 +14,8 @@ use Aether\RpcExceptionHandler;
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'http' => [
|
'http' => [
|
||||||
ApiExceptionHandler::class,
|
|
||||||
],
|
],
|
||||||
'jsonrpc-http' => [
|
'jsonrpc-http' => [
|
||||||
RequestId::class,
|
RequestId::class,
|
||||||
RpcExceptionHandler::class,
|
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user