Nexus API Reference

RequiresRole
in package
implements AuthorizationRequirement

Read onlyYes
FinalYes
Tags
psalm-api

All-of role check. 403 if the Principal lacks ANY of the listed roles.

Attributes
#[Attribute]
\Attribute::TARGET_CLASS

Table of Contents

Interfaces

AuthorizationRequirement

Properties

$roles  : array<int, string>

Methods

__construct()  : mixed

Properties

Methods

__construct()

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

Search results