google_authenticator.xml 1.4 KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  3. <services>
  4. <service id="sonata.user.google.authenticator" class="Google\Authenticator\GoogleAuthenticator">
  5. </service>
  6. <service id="sonata.user.google.authenticator.provider" class="Sonata\UserBundle\GoogleAuthenticator\Helper">
  7. <argument/>
  8. <argument type="service" id="sonata.user.google.authenticator"/>
  9. </service>
  10. <service id="sonata.user.google.authenticator.interactive_login_listener" class="Sonata\UserBundle\GoogleAuthenticator\InteractiveLoginListener">
  11. <tag name="kernel.event_listener" event="security.interactive_login" method="onSecurityInteractiveLogin"/>
  12. <argument type="service" id="sonata.user.google.authenticator.provider"/>
  13. </service>
  14. <service id="sonata.user.google.authenticator.request_listener" class="Sonata\UserBundle\GoogleAuthenticator\RequestListener">
  15. <tag name="kernel.event_listener" event="kernel.request" method="onCoreRequest" priority="-1"/>
  16. <argument type="service" id="sonata.user.google.authenticator.provider"/>
  17. <argument/>
  18. <argument type="service" id="templating"/>
  19. </service>
  20. </services>
  21. </container>