I'm working on a Symfony 2.4.4 project and I would like to secure an url through security.yml. Symfony default behaviour is to deny access and redirect to login but i would like to through an exception. Does any one know how should i accomplish it?
I'm talking about sonata login route /admin/login, I want to through an exception when unauthenticated users try to access.