php - Symfony2 custom access denied handler -
i'm trying restrict calls inside symfony 2.8 app localhost, far i've managed via security.yml
problem cannot change access denied page.
i followed symfony2 documentation link
but no success, on debug toolbar not find firewall path.
this security.yml
providers: in_memory: memory: ~ firewalls: secured_area: pattern: ^/register access_denied_handler: app.security.access_denied_handler anonymous: ~ dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false access_denied_handler: app.security.access_denied_handler main: anonymous: ~ access_denied_handler: app.security.access_denied_handler access_control: - { path: ^/register, roles: role_admin, allow_if: "'127.0.0.1' == request.getclientip()" }
i not understand how configure /register
path go through secured_area
firewall rule , use access_denied_handler: app.security.access_denied_handler
service handle access denied page
Comments
Post a Comment