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