Files
hyperf_data/config/autoload/middlewares.php
阿不叮咚 1f6b60ee0f ..
2025-09-24 16:37:22 +08:00

27 lines
500 B
PHP

<?php
declare(strict_types=1);
use Aether\ApiExceptionHandler;
use Aether\Middleware\RequestId;
use Aether\RpcExceptionHandler;
/*
* This file is part of Hyperf.
*
* @see https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
return [
'http' => [
ApiExceptionHandler::class,
],
'jsonrpc-http' => [
RequestId::class,
RpcExceptionHandler::class,
],
];