isAdmin()) { return $next($request); } throw new AccessDeniedHttpException("You must be an admin to access this path"); } }