SHARE
TWEET

Untitled

a guest Jul 5th, 2011 463 Never
  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 }
RAW Paste Data
Top