Skip to content
docsv0.9.0

PermissionSource

The provenance of a grant: its {@see PermissionSourceType} and the id within it — a role id for {@see PermissionSourceType::Role}, the raw scope string (including `'*'`) for {@see PermissionSourceType::Scope}. This is what lets authorization be *explained*, not just decided.

PermissionSource::__construct()

public function __construct(Milpa\Auth\PermissionSourceType $type, string $id):

Parameters

Parameters of __construct()
NameTypeDescription
$typeMilpa\Auth\PermissionSourceType
$idstring