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
| Name | Type | Description |
|---|---|---|
| $type | Milpa\Auth\PermissionSourceType | |
| $id | string |