DynamicRole Interface Reference
Detailed Description
DynamicRole is the interface for user roles based on attributes.
Definition at line 20 of file DynamicRole.php.
Public Member Functions | |
match (User $user, $resource) | |
Member Function Documentation
◆ match()
match | ( | User | $user, |
$resource | |||
) |
Check if this role matches for a user and resource.
- Parameters
-
$user The user instance. $resource The resource string.
- Returns
- Boolean whether the role matches or not, null if the result is undefined