Beta version

class RolesBag

Roles bag used to get quickly a role entity and to create it automatically if it does not exist.

Methods

static Role
get(string $roleName)

Get role by name or create it if non-existant.

Details

at line 55
static Role get(string $roleName)

Get role by name or create it if non-existant.

Parameters

string $roleName

Return Value

Role