Answer the question
In order to leave comments, you need to log in
What is the best way to store roles in Silex with SecurityServiceProvider?
Hello to everyone who uses what schemes to store roles in Silex.
Here is part of the config file
'security.role_hierarchy' => array(
'ROLE_ADMIN' => array(
'ROLE_MANAGER'
),
'ROLE_MANAGER' => array(
'ROLE_SECTION_EDIT',
'ROLE_SECTION_REMOVE',
)
)
user:
roles:
ROLE_ADMIN: "Администратор"
ROLE_MANAGER: "Менеджер"
ROLE_SECTION_EDIT: "Редактирование раздела"
ROLE_SECTION_REMOVE: "Удаление раздела"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question