security.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8"?>
  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="fos_user.security.interactive_login_listener.class">FOS\UserBundle\Security\InteractiveLoginListener</parameter>
  7. <parameter key="fos_user.security.login_manager.class">FOS\UserBundle\Security\LoginManager</parameter>
  8. </parameters>
  9. <services>
  10. <service id="fos_user.security.interactive_login_listener" class="%fos_user.security.interactive_login_listener.class%">
  11. <argument type="service" id="fos_user.user_manager" />
  12. <tag name="kernel.event_listener" event="security.interactive_login" method="onSecurityInteractiveLogin" />
  13. </service>
  14. <service id="fos_user.security.login_manager" class="%fos_user.security.login_manager.class%">
  15. <argument type="service" id="security.context" />
  16. <argument type="service" id="security.user_checker" />
  17. <argument type="service" id="security.authentication.session_strategy" />
  18. <argument type="service" id="service_container" />
  19. </service>
  20. <service id="fos_user.user_provider.username" class="FOS\UserBundle\Security\UserProvider" public="false">
  21. <argument type="service" id="fos_user.user_manager" />
  22. </service>
  23. <service id="fos_user.user_provider.username_email" class="FOS\UserBundle\Security\EmailUserProvider" public="false">
  24. <argument type="service" id="fos_user.user_manager" />
  25. </service>
  26. </services>
  27. </container>