Rbac
- Full name:
\Codefy\Framework\Auth\Rbac\Rbac - This class implements:
\Codefy\Framework\Auth\Rbac\Guard
Properties
storageResource
roles
permissions
Methods
__construct
Parameters:
| Parameter | Type | Description |
|---|---|---|
$storageResource | \Codefy\Framework\Auth\Rbac\Resource\StorageResource |
addRole
public addRole(string $name, string $description = ''): \Codefy\Framework\Auth\Rbac\Entity\Role
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$description | string |
addPermission
public addPermission(string $name, string $description = ''): \Codefy\Framework\Auth\Rbac\Entity\Permission
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$description | string |
getRole
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
deleteRole
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
getPermission
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
deletePermission
Parameters:
| Parameter | Type | Description |
|---|---|---|
$name | string |
clear
load
save
Automatically generated on 2025-10-13