class RolesDefinition implements RolesDefinitionInterface | class RolesDefinition implements RolesDefinitionInterface | ||||
{ | { | ||||
const ROLE_USER = 'ROLE_USER' ; | |||||
const ROLE_ADMIN = 'ROLE_ADMIN' ; | |||||
const ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN' ; | |||||
protected $roles = array( | protected $roles = array( | ||||
'ROLE_USER' => [ | |||||
self::ROLE_USER => [ | |||||
'label' => 'Utilisateurs', | 'label' => 'Utilisateurs', | ||||
'role' => 'ROLE_USER', | |||||
'role' => self::ROLE_USER, | |||||
], | ], | ||||
'ROLE_ADMIN' => [ | |||||
self::ROLE_ADMIN => [ | |||||
'label' => 'Administrateurs', | 'label' => 'Administrateurs', | ||||
'role' => 'ROLE_ADMIN', | |||||
'role' => self::ROLE_ADMIN, | |||||
], | ], | ||||
'ROLE_SUPER_ADMIN' => [ | |||||
self::ROLE_SUPER_ADMIN => [ | |||||
'label' => 'SuperAdmin', | 'label' => 'SuperAdmin', | ||||
'role' => 'ROLE_SUPER_ADMIN', | |||||
'role' => self::ROLE_SUPER_ADMIN, | |||||
], | ], | ||||
); | ); | ||||
sov_admin_account_profile: | sov_admin_account_profile: | ||||
path: /admin/account/profile | path: /admin/account/profile | ||||
controller: Lc\SovBundle\Controller\User\UserController::profile | |||||
controller: Lc\SovBundle\Controller\User\AccountAdminController::profile | |||||
sov_admin_account_password: | sov_admin_account_password: | ||||
path: /admin/account/password | path: /admin/account/password | ||||
controller: Lc\SovBundle\Controller\User\UserController::changePassword | |||||
controller: Lc\SovBundle\Controller\User\AccountAdminController::changePassword | |||||
<meta name="generator" content="EasyAdmin"/> | <meta name="generator" content="EasyAdmin"/> | ||||
{% endblock head_metas %} | {% endblock head_metas %} | ||||
<title>{% block page_title %}{{ block('content_title')|striptags|raw }}{% endblock %}</title> | |||||
<title>{% block page_title %}Administration | {{ block('content_title')|striptags|raw }}{% endblock %}</title> | |||||
{# {% block head_stylesheets %} | {# {% block head_stylesheets %} | ||||
<link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}"> | <link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}"> | ||||
{% endif %} | {% endif %} | ||||
{% endif %} | {% endif %} | ||||
{% block append_body %}{% endblock %} | |||||
</body> | </body> | ||||
{% endblock body %} | {% endblock body %} | ||||
</html> | </html> |