src/Leevel/Auth/Middleware/Auth.php
public function handle(Closure $next, IRequest $request): void
    {
        if (!$this->manager->isLogin()) {
            throw new AuthException('User authorization failed.');
        }

        $next($request);
    }
public function handle(Closure $next, IRequest $request): void
    {
        if (!$this->manager->isLogin()) {
            throw new AuthException('User authorization failed.');
        }

        $next($request);
    }
请求

@param \Closure              $next
@param \Leevel\Http\IRequest $request