doc map bug fix

This commit is contained in:
dongwei 2019-01-23 15:12:45 +08:00
parent 1e0db82968
commit 9ae4d558c1
3 changed files with 3 additions and 5 deletions

View File

@ -40,10 +40,6 @@ class LogstashFormatter extends NormalizerFormatter
// if (isset($record['channel'])) {
// $message['channel'] = $record['channel'];
// }
if (isset($record['x-client-app'])) {
$message['client_app'] = $record['x_client_app'];
}
if (isset($record['level_name'])) {
$message['level'] = $record['level_name'];
}

View File

@ -4,6 +4,7 @@ namespace JsonRpc\Providers;
use JsonRpc\Exception\RpcServerException;
use JsonRpc\Middleware\Security;
use JsonRpc\Middleware\TunnelMiddleware;
use JsonRpc\Server\JsonRpcDoc;
use JsonRpc\Server\JsonRpcServer;
use JsonRpc\Server\JsonRpcTool;
@ -24,6 +25,7 @@ class LumenServerServiceProvider extends LoggerServiceProvider
public function boot()
{
$this->app->middleware(TunnelMiddleware::class);
$this->app->routeMiddleware(['rpc.security' => Security::class]);
$this->app->router->group([
'prefix' => 'rpc',

View File

@ -13,7 +13,7 @@ class JsonRpcDoc
public function __construct($config)
{
$this->map = include $config['map'];
$this->map = $config['map'];
}
public function methods()