config.yml 762 B

123456789101112131415161718192021222324252627
  1. imports:
  2. - { resource: ./../config/framework.yml }
  3. security:
  4. encoders:
  5. Symfony\Component\Security\Core\User\User: plaintext
  6. Custom\Class\Bcrypt\User:
  7. algorithm: bcrypt
  8. cost: 10
  9. Custom\Class\Pbkdf2\User:
  10. algorithm: pbkdf2
  11. hash_algorithm: sha512
  12. encode_as_base64: true
  13. iterations: 1000
  14. Custom\Class\Test\User: test
  15. providers:
  16. in_memory:
  17. memory:
  18. users:
  19. user: { password: userpass, roles: [ 'ROLE_USER' ] }
  20. admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
  21. firewalls:
  22. test:
  23. pattern: ^/
  24. security: false