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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -