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

__construct(ContainerInterface $container)

No description

array
findAllGroups()

Get all groups

array
getRouteCollection()

Get lis of all available routes

Client|Client
getRedis()

No description

string
getAllRoutesAsHTML(array $routes, array $roles)

Convert array of routes to html content

RoleEvent|Event
dispatchReCheckRolePermissions()

Dispatch event to re-cache roles

bool
dispatchCheckRolePermissions(mixed $permission, mixed $role)

Check if specified role has permission

mixed
dispatchAdditionalProductPermission(mixed $permission, mixed $param)

Dispatch event for special product permissions Example: event to check permissions for product flags on motobike

User|null
getCurrentUser()

Retrieve current logged user

Details

at line 38
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 47
array findAllGroups()

Get all groups

Return Value

array

at line 56
array getRouteCollection()

Get lis of all available routes

Return Value

array

at line 64
Client|Client getRedis()

Return Value

Client|Client

at line 78
string getAllRoutesAsHTML(array $routes, array $roles)

Convert array of routes to html content

Parameters

array $routes
array $roles

Return Value

string

Exceptions

Error

at line 90
RoleEvent|Event dispatchReCheckRolePermissions()

Dispatch event to re-cache roles

Return Value

RoleEvent|Event

at line 102
bool dispatchCheckRolePermissions(mixed $permission, mixed $role)

Check if specified role has permission

Parameters

mixed $permission
mixed $role

Return Value

bool

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

Parameters

mixed $permission
mixed $param

Return Value

mixed

at line 136
User|null getCurrentUser()

Retrieve current logged user

Return Value

User|null