<?xml version="1.0" ?>

<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="Shopware\Core\System\User\UserDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\User\Aggregate\UserConfig\UserConfigDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\User\Aggregate\UserAccessKey\UserAccessKeyDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\User\Aggregate\UserRecovery\UserRecoveryDefinition">
            <tag name="shopware.entity.definition"/>
        </service>

        <service id="Shopware\Core\System\User\Recovery\UserRecoveryService">
            <argument type="service" id="user_recovery.repository"/>
            <argument type="service" id="user.repository"/>
            <argument type="service" id="router"/>
            <argument type="service" id="event_dispatcher"/>
            <argument type="service" id="Shopware\Core\System\SalesChannel\Context\SalesChannelContextService" />
            <argument type="service" id="sales_channel.repository" />
        </service>

        <service id="Shopware\Core\System\User\Api\UserRecoveryController" public="true">
            <argument type="service" id="Shopware\Core\System\User\Recovery\UserRecoveryService"/>
            <argument type="service" id="shopware.rate_limiter"/>
            <call method="setContainer">
                <argument type="service" id="service_container"/>
            </call>
        </service>

        <service id="Shopware\Core\System\User\Service\UserValidationService">
            <argument type="service" id="user.repository"/>
        </service>

        <service id="Shopware\Core\System\User\Api\UserValidationController" public="true">
            <argument type="service" id="Shopware\Core\System\User\Service\UserValidationService"/>
            <call method="setContainer">
                <argument type="service" id="service_container"/>
            </call>
        </service>
    </services>
</container>
