×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Pascual Muñoz
Added: Oct 28, 2016 6:53 PM
Modified: Oct 28, 2016 6:57 PM
Views: 9
app/config/security skel para configurar conexión a Mysql
  1. # To get started with security, check out the documentation:
  2. # http://symfony.com/doc/current/book/security.html
  3. security:
  4.  
  5.     # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
  6.     providers:
  7.         mi_provider:
  8.             entity:
  9.                 class: BlogBundle:user
  10.                 property: email
  11.              
  12.  
  13.     firewalls:
  14.         # disables authentication for assets and the profiler, adapt it according to your needs
  15.         dev:
  16.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  17.             security: false
  18.  
  19.         main:
  20.             anonymous: ~
  21.             mi_provider : ~
  22.             from_login:
  23.                 login_path: /login
  24.                 check_path: /login_check
  25.             logout:
  26.                 path: /logout
  27.                 target: /login
  28.                
  29.                
  30.          
  31.             # activate different ways to authenticate
  32.  
  33.             # http_basic: ~
  34.             # http://symfony.com/doc/current/book/security.html#a-configuring-how-your-users-will-authenticate
  35.  
  36.             # form_login: ~
  37.             # http://symfony.com/doc/current/cookbook/security/form_login_setup.html