Skip to content

Instantly share code, notes, and snippets.

@julesbou
Created March 1, 2011 13:20
Show Gist options
  • Save julesbou/849110 to your computer and use it in GitHub Desktop.
Save julesbou/849110 to your computer and use it in GitHub Desktop.
security:
acl: ~
access_control:
- { path: /admin/.*, role: ROLE_ADMIN, host: resowl2.com }
- { path: /.*, roles: [IS_AUTHENTICATED_ANONYMOUSLY, ROLE_USER] }
encoders:
admin: { algorithm: sha1, class: Sas\CoreBundle\Entity\Account }
providers:
fos_user:
id: fos_user.user_manager
firewalls:
admin:
pattern: /admin/.*
provider: fos_user
logout: true
form_login:
check_path: /admin/login_check
login_path: /login
default_target_path: /admin/
security: true
anonymous: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment