Nexus API Reference

UnprotectedRouteException extends NexusException
in package

FinalYes
Tags
psalm-api

Thrown at compile time when a route's handler class declares an authorization requirement (an attribute implementing AuthorizationRequirement, e.g. #[RequiresAuth]) but the route has no middleware implementing AuthorizationEnforcer. Serving such a route would silently skip the declared protection, so compilation fails closed instead.

Table of Contents

Methods

__construct()  : mixed

Methods

__construct()

public __construct(string $method, string $path, string $handlerClass, string $requirement) : mixed
Parameters
$method : string
$path : string
$handlerClass : string
$requirement : string
On this page

Search results