config.yml 951 B

123456789101112131415161718192021222324252627282930313233
  1. framework:
  2. secret: test
  3. csrf_protection:
  4. enabled: true
  5. router: { resource: "%kernel.root_dir%/%kernel.test_case%/routing.yml" }
  6. validation: { enabled: true, enable_annotations: true }
  7. form: ~
  8. test: ~
  9. default_locale: en
  10. session:
  11. storage_id: session.storage.mock_file
  12. profiler: { only_exceptions: false }
  13. services:
  14. logger: { class: Psr\Log\NullLogger }
  15. security:
  16. firewalls:
  17. secure:
  18. pattern: ^/secure/
  19. http_basic: { realm: "Secure Gateway API" }
  20. entry_point: firewall_entry_point.entry_point.stub
  21. default:
  22. anonymous: ~
  23. access_control:
  24. - { path: ^/secure/, roles: ROLE_SECURE }
  25. providers:
  26. in_memory:
  27. memory:
  28. users:
  29. john: { password: doe, roles: [ROLE_SECURE] }
  30. encoders:
  31. Symfony\Component\Security\Core\User\User: plaintext