Bristol SU Support Package
|
Public Member Functions | |
__construct (Authentication $authentication) | |
fromString (string $resourceType) | |
Private Attributes | |
$authentication | |
Generates a resource ID from the authenticatoin
Definition at line 11 of file AuthenticationResourceIdGenerator.php.
BristolSU\Support\Authentication\AuthenticationResourceIdGenerator::__construct | ( | Authentication | $authentication | ) |
Initialise the authentication resource id generator
Authentication | $authentication | Authentication implementation |
Definition at line 26 of file AuthenticationResourceIdGenerator.php.
References BristolSU\Support\Authentication\AuthenticationResourceIdGenerator\$authentication.
BristolSU\Support\Authentication\AuthenticationResourceIdGenerator::fromString | ( | string | $resourceType | ) |
Generate a resource id
Passing a resource type (user, group or role) will get the corresponding model from authentication and return the id
string | $resourceType | User, group or role |
Implements BristolSU\Support\Authentication\Contracts\ResourceIdGenerator.
Definition at line 41 of file AuthenticationResourceIdGenerator.php.
|
private |
Definition at line 19 of file AuthenticationResourceIdGenerator.php.
Referenced by BristolSU\Support\Authentication\AuthenticationResourceIdGenerator\__construct().