Advertisement
n0rthway

knp-security-yml

May 30th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.76 KB | None | 0 0
  1. # To get started with security, check out the documentation:
  2. # http://symfony.com/doc/current/security.html
  3. security:
  4.     # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  5.     providers:
  6.         our_users:
  7.             entity:
  8.                 class: AppBundle:User
  9.                 property: username
  10.  
  11.     firewalls:
  12.        # disables authentication for assets and the profiler, adapt it according to your needs
  13.         dev:
  14.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  15.             security: false
  16.  
  17.         main:
  18.             anonymous: ~
  19.             guard:
  20.                 authenticators:
  21.                    - app.security.login_form_authenticator
  22.                     # activate different ways to authenticate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement