Here is my config:
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
admin:
pattern: ^/admin
provider: user_provider
anonymous: false
form_login:
login_path: login_admin
check_path: login_admin
As the official documentation says the form_login provider intercepts POST requests to login_admin and it does, BUT i want the admin section to be completely inaccessible if the user is not authenticated, thus the anonymous key has to be false. But if I set it to false interception of the POST request doesn't happen. I guess its because the request doesn't even reach the login_path.
Could someone provide me an example of firewall configuration for an admin section?
Thank you
ферволы внутри фреймворка до че же всё это дошло
Обсуждают сегодня