security_rememberme.xml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. <parameters>
  6. <parameter key="security.authentication.provider.rememberme.class">Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider</parameter>
  7. <parameter key="security.authentication.listener.rememberme.class">Symfony\Component\Security\Http\Firewall\RememberMeListener</parameter>
  8. <parameter key="security.rememberme.token.provider.in_memory.class">Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider</parameter>
  9. <parameter key="security.authentication.rememberme.services.persistent.class">Symfony\Component\Security\Http\RememberMe\PersistentTokenBasedRememberMeServices</parameter>
  10. <parameter key="security.authentication.rememberme.services.simplehash.class">Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices</parameter>
  11. <parameter key="security.rememberme.response_listener.class">Symfony\Component\Security\Http\RememberMe\ResponseListener</parameter>
  12. </parameters>
  13. <services>
  14. <service id="security.authentication.listener.rememberme" class="%security.authentication.listener.rememberme.class%" public="false" abstract="true">
  15. <tag name="monolog.logger" channel="security" />
  16. <argument type="service" id="security.token_storage" />
  17. <argument type="service" id="security.authentication.rememberme" />
  18. <argument type="service" id="security.authentication.manager" />
  19. <argument type="service" id="logger" on-invalid="null" />
  20. <argument type="service" id="event_dispatcher" on-invalid="null"/>
  21. <argument /> <!-- Catch exception flag set in RememberMeFactory -->
  22. <argument type="service" id="security.authentication.session_strategy" />
  23. </service>
  24. <service id="security.authentication.provider.rememberme" class="%security.authentication.provider.rememberme.class%" abstract="true" public="false">
  25. <argument /> <!-- User Checker -->
  26. </service>
  27. <service id="security.rememberme.token.provider.in_memory" class="%security.rememberme.token.provider.in_memory.class%" public="false" />
  28. <service id="security.authentication.rememberme.services.abstract" abstract="true" public="false">
  29. <tag name="monolog.logger" channel="security" />
  30. <argument type="collection" /> <!-- User Providers -->
  31. <argument /> <!-- Shared Token Key -->
  32. <argument /> <!-- Shared Provider Key -->
  33. <argument type="collection" /> <!-- Options -->
  34. <argument type="service" id="logger" on-invalid="null" />
  35. </service>
  36. <service id="security.authentication.rememberme.services.persistent"
  37. class="%security.authentication.rememberme.services.persistent.class%"
  38. parent="security.authentication.rememberme.services.abstract"
  39. abstract="true" />
  40. <service id="security.authentication.rememberme.services.simplehash"
  41. class="%security.authentication.rememberme.services.simplehash.class%"
  42. parent="security.authentication.rememberme.services.abstract"
  43. abstract="true" />
  44. <service id="security.rememberme.response_listener" class="%security.rememberme.response_listener.class%">
  45. <tag name="kernel.event_subscriber" />
  46. </service>
  47. </services>
  48. </container>