PermissionResolver
in package
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- can() : bool
- getPermissions() : array<string|int, mixed>
Properties
$cache
private
SessionPermissionCache
$cache
$mySql
private
MySql
$mySql
Methods
__construct()
public
__construct(MySql $mySql, SessionPermissionCache $cache) : mixed
Parameters
- $mySql : MySql
- $cache : SessionPermissionCache
can()
public
can(int $userId, string $resource, string $action) : bool
Parameters
- $userId : int
- $resource : string
- $action : string
Return values
boolgetPermissions()
public
getPermissions(int $userId) : array<string|int, mixed>
Parameters
- $userId : int