<?xml version="1.0" encoding="UTF-8"?>
<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">
	<services>
		<service id="scheb_two_factor.security.google_totp_factory" class="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleTotpFactory">
			<argument>%scheb_two_factor.google.server_name%</argument>
			<argument>%scheb_two_factor.google.issuer%</argument>
			<argument>%scheb_two_factor.google.digits%</argument>
		</service>

		<service id="scheb_two_factor.security.google_authenticator" class="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticator" public="true">
			<argument type="service" id="scheb_two_factor.security.google_totp_factory" />
			<argument>%scheb_two_factor.google.window%</argument>
		</service>

		<service id="scheb_two_factor.security.google.default_form_renderer" class="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\DefaultTwoFactorFormRenderer" lazy="true">
			<argument type="service" id="twig" />
			<argument>%scheb_two_factor.google.template%</argument>
		</service>

		<service id="scheb_two_factor.security.google.form_renderer" alias="scheb_two_factor.security.google.default_form_renderer" />

		<service id="scheb_two_factor.security.google.provider" class="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticatorTwoFactorProvider">
			<tag name="scheb_two_factor.provider" alias="google" />
			<argument type="service" id="scheb_two_factor.security.google_authenticator" />
			<argument type="service" id="scheb_two_factor.security.google.form_renderer" />
		</service>

		<!-- Aliases for auto-wiring -->
		<service id="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticatorInterface" alias="scheb_two_factor.security.google_authenticator" public="true" />
		<service id="Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticator" alias="scheb_two_factor.security.google_authenticator" public="true" />
	</services>
</container>
