security - Symfony2 access controll and path names -


i not find in symfony2 docs i'm asking here. possible set path names instead of patterns inside security.yml access_controll?

instead of:

access_control:     - { path: /admin/logowanie, roles: is_authenticated_anonymously } 

set this:

access_control:     - { path: pkr_blog_user_login, roles: is_authenticated_anonymously } 

path name correct @ moment second form not work . how can make work?

i don't think can this.

what can secure controller pretty you're trying here, controller (action) invoked particular route , if change route name, supposed have pass through same controller action.

in way can have flexibility you're searching for.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -