Bristol SU Support Package
|
Public Member Functions | |
fromString (string $resourceType) | |
Generates a resource ID from a resource type
Definition at line 8 of file ResourceIdGenerator.php.
BristolSU\Support\Authentication\Contracts\ResourceIdGenerator::fromString | ( | string | $resourceType | ) |
Return the resource ID from a resource type
If the resourceType is user, it will return the user id. It is up to the implementation as to where the resources are found.
string | $resourceType | User, Group or Role |
Implemented in BristolSU\Support\Authentication\AuthenticationResourceIdGenerator.