Roles::load()
Loads all roles from plugins and the given blueprints directory and always includes the admin role
Roles::load(string|null $root = null, array $inject = []): Roles
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $root | stringornull |
null
|
|
| $inject | array<string, mixed> |
[]
|
Props to add to each role if not defined |