guard.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <services>
  6. <service id="security.authentication.guard_handler"
  7. class="Symfony\Component\Security\Guard\GuardAuthenticatorHandler"
  8. >
  9. <argument type="service" id="security.token_storage" />
  10. <argument type="service" id="event_dispatcher" on-invalid="null" />
  11. <argument /> <!-- stateless firewall keys -->
  12. <call method="setSessionAuthenticationStrategy">
  13. <argument type="service" id="security.authentication.session_strategy" />
  14. </call>
  15. </service>
  16. <!-- See GuardAuthenticationFactory -->
  17. <service id="security.authentication.provider.guard"
  18. class="Symfony\Component\Security\Guard\Provider\GuardAuthenticationProvider"
  19. abstract="true"
  20. public="false"
  21. >
  22. <argument /> <!-- Simple Authenticator -->
  23. <argument /> <!-- User Provider -->
  24. <argument /> <!-- Provider-shared Key -->
  25. <argument /> <!-- User Checker -->
  26. </service>
  27. <service id="security.authentication.listener.guard"
  28. class="Symfony\Component\Security\Guard\Firewall\GuardAuthenticationListener"
  29. public="false"
  30. abstract="true"
  31. >
  32. <tag name="monolog.logger" channel="security" />
  33. <argument type="service" id="security.authentication.guard_handler" />
  34. <argument type="service" id="security.authentication.manager" />
  35. <argument /> <!-- Provider-shared Key -->
  36. <argument /> <!-- Authenticator -->
  37. <argument type="service" id="logger" on-invalid="null" />
  38. </service>
  39. </services>
  40. </container>