Nexus API Reference

RequiresScope
in package
implements AuthorizationRequirement

Read onlyYes
FinalYes
Tags
psalm-api

All-of scope check. 403 if the Principal lacks ANY of the listed scopes.

#[RequiresScope('orders.read', 'orders.write')] final class CreateOrderHandler { … }

Attributes
#[Attribute]
\Attribute::TARGET_CLASS

Table of Contents

Interfaces

AuthorizationRequirement

Properties

$scopes  : array<int, string>

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(string ...$scopes) : mixed
Parameters
$scopes : string
On this page

Search results