Created
January 25, 2016 08:58
-
-
Save wouterj/cf14f45f8e55170c5fcc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firewalls: | |
# disables authentication for assets and the profiler, adapt it according to your needs | |
dev: | |
pattern: ^/(_(profiler|wdt)|css|images|js)/ | |
security: false | |
main: | |
pattern: ^/ | |
provider: db_provider | |
anonymous: ~ | |
http_basic: ~ | |
form_login: | |
login_path: /login | |
check_path: /login_check | |
csrf_token_generator: security.csrf.token_manager | |
logout: | |
path: /logout | |
target: / | |
access_control: | |
- { path: ^/admin, roles: ROLE_ADMIN } | |
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/registration, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/, roles: ROLE_USER } | |
This ad is supporting your extension ruul (screen ruler): More info | Privacy Policy | Hide on this page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment