Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 5th, 2011  |  syntax: YAML  |  size: 0.76 KB  |  views: 425  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. security:
  2.     encoders:
  3.         Symfony\Component\Security\Core\User\User: plaintext
  4.         F3\FFGBundle\Entity\User: plaintext
  5.  
  6.     role_hierarchy:
  7.         ROLE_ADMIN:      ROLE_USER
  8.         ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  9.  
  10.     providers:
  11.         main:
  12.             entity: { class: F3\FFGBundle\Entity\User, property: username }
  13.  
  14.     firewalls:
  15.         dev:
  16.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  17.             security: false
  18.  
  19.         login:
  20.             pattern: ^/demo/secured/login$
  21.             security: false
  22.  
  23.         secured_area:
  24.             pattern:   /admin
  25.             http_basic:
  26.                 realm: "Secured Demo Area"
  27.  
  28.     access_control:
  29.         - { path: /admin, roles: ROLE_ADMIN }
clone this paste RAW Paste Data