\App\MiddlewareAdminAuthMiddleware

AdminAuthMiddleware 验证用户是否有路由请求权限

Summary

Methods
Properties
Constants
__construct()
process()
No public properties found
No constants found
No protected methods found
$container
N/A
No private methods found
$request
$auth
$adminPermission
N/A

Properties

$container

$container : \Psr\Container\ContainerInterface

Type

\Psr\Container\ContainerInterface

$request

$request : \Hyperf\HttpServer\Contract\RequestInterface

Type

\Hyperf\HttpServer\Contract\RequestInterface

Methods

__construct()

__construct(\Psr\Container\ContainerInterface  $container) 

Parameters

\Psr\Container\ContainerInterface $container

process()

process(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Server\RequestHandlerInterface  $handler) 

Parameters

\Psr\Http\Message\ServerRequestInterface $request
\Psr\Http\Server\RequestHandlerInterface $handler