handle() handle(\Symfony\Component\HttpFoundation\Request $request, callable $next) : \Symfony\Component\HttpFoundation\Response 处理请求权限 Parameters \Symfony\Component\HttpFoundation\Request $request callable $next Throws \Exception Returns \Symfony\Component\HttpFoundation\Response —
getCurrentUserRole() getCurrentUserRole(\Symfony\Component\HttpFoundation\Request $request) : string 获取当前用户角色 (模拟实现,请替换为真实逻辑) Parameters \Symfony\Component\HttpFoundation\Request $request Returns string —
forbiddenResponse() forbiddenResponse() : \Symfony\Component\HttpFoundation\Response 生成 403 Forbidden 响应 Returns \Symfony\Component\HttpFoundation\Response —