RoleEventContainer
class RoleEventContainer
Class RoleEventContainer is injected as alligator.role.event.container. This container is connecting RoleManager manager to other services
Constants
| ALL_ROUTES_CASH |
Caching key |
Properties
| protected ContainerInterface | $container |
Methods
No description
Get all groups
Get lis of all available routes
No description
Convert array of routes to html content
Dispatch event to re-cache roles
Check if specified role has permission
Dispatch event for special product permissions Example: event to check permissions for product flags on motobike
Retrieve current logged user
Details
at line 38
__construct(ContainerInterface $container)
at line 47
array
findAllGroups()
Get all groups
at line 56
array
getRouteCollection()
Get lis of all available routes
at line 64
Client|Client
getRedis()
at line 78
string
getAllRoutesAsHTML(array $routes, array $roles)
Convert array of routes to html content
at line 90
RoleEvent|Event
dispatchReCheckRolePermissions()
Dispatch event to re-cache roles
at line 102
bool
dispatchCheckRolePermissions(mixed $permission, mixed $role)
Check if specified role has permission
at line 118
mixed
dispatchAdditionalProductPermission(mixed $permission, mixed $param)
Dispatch event for special product permissions Example: event to check permissions for product flags on motobike
at line 136
User|null
getCurrentUser()
Retrieve current logged user