Nexus API Reference

RequiresScope
in package

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 { … }

Table of Contents

Properties

$scopes  : array<int, string>

Methods

__construct()  : mixed

Attributes

#[Attribute]

#[Attribute]

Properties

Methods

__construct()

public __construct(string ...$scopes) : mixed
Parameters
$scopes : string

        
On this page

Search results