Código PHP:
security:
encoders:
exampleBundleMyBundleEntityAdmin: sha512
role_hierarchy:
ROLE_SUPER_ADMIN: [ROLE_SUPER_ADMIN]
ROLE_ADMIN: [ROLE_ADMIN]
providers:
user_db:
entity: { class: exampleBundleMyBundleEntityAdmin, property: username }
access_control:
- { path: ^/example/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/example, roles: ROLE_ADMIN }
firewalls:
admin:
pattern: ^/example
provider: user_db
http_basic: true
form_login:
login_path: project_backend_login
check_path: project_backend_login_check
remember_me: false
always_use_default_target_path: true
default_target_path: /example
logout:
path: /example/logout
target: /example
security: true
anonymous: true
Pues no se por donde puedo tener el error...