This is my security.yml file
firewalls:
main:
pattern: ^/
form_login:
provider: fos_userbundle
csrf_provider: form.csrf_provider
login_path: project_frontend_main_index
logout:
path: project_frontend_main_logout
anonymous: true
access_control:
- { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/admin/, role: ROLE_ADMIN }
- { path: ^/alerts*, role: ROLE_USER }
My question is The problem is with logout, I can't access logout function in the Main controller. I get this error when i click "logout" You must activate the logout in your security firewall configuration.