doc map bug fix
This commit is contained in:
parent
1e0db82968
commit
9ae4d558c1
|
@ -40,10 +40,6 @@ class LogstashFormatter extends NormalizerFormatter
|
||||||
// if (isset($record['channel'])) {
|
// if (isset($record['channel'])) {
|
||||||
// $message['channel'] = $record['channel'];
|
// $message['channel'] = $record['channel'];
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (isset($record['x-client-app'])) {
|
|
||||||
$message['client_app'] = $record['x_client_app'];
|
|
||||||
}
|
|
||||||
if (isset($record['level_name'])) {
|
if (isset($record['level_name'])) {
|
||||||
$message['level'] = $record['level_name'];
|
$message['level'] = $record['level_name'];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespace JsonRpc\Providers;
|
||||||
|
|
||||||
use JsonRpc\Exception\RpcServerException;
|
use JsonRpc\Exception\RpcServerException;
|
||||||
use JsonRpc\Middleware\Security;
|
use JsonRpc\Middleware\Security;
|
||||||
|
use JsonRpc\Middleware\TunnelMiddleware;
|
||||||
use JsonRpc\Server\JsonRpcDoc;
|
use JsonRpc\Server\JsonRpcDoc;
|
||||||
use JsonRpc\Server\JsonRpcServer;
|
use JsonRpc\Server\JsonRpcServer;
|
||||||
use JsonRpc\Server\JsonRpcTool;
|
use JsonRpc\Server\JsonRpcTool;
|
||||||
|
@ -24,6 +25,7 @@ class LumenServerServiceProvider extends LoggerServiceProvider
|
||||||
|
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
$this->app->middleware(TunnelMiddleware::class);
|
||||||
$this->app->routeMiddleware(['rpc.security' => Security::class]);
|
$this->app->routeMiddleware(['rpc.security' => Security::class]);
|
||||||
$this->app->router->group([
|
$this->app->router->group([
|
||||||
'prefix' => 'rpc',
|
'prefix' => 'rpc',
|
||||||
|
|
|
@ -13,7 +13,7 @@ class JsonRpcDoc
|
||||||
|
|
||||||
public function __construct($config)
|
public function __construct($config)
|
||||||
{
|
{
|
||||||
$this->map = include $config['map'];
|
$this->map = $config['map'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function methods()
|
public function methods()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user