<?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="DisablePrivateCustomers\Validation\VatIdValidator">
            <argument type="service" id="Shopware\Core\Framework\Validation\HappyPathValidator"/>
        </service>

        <service id="DisablePrivateCustomers\Subscriber\CustomerRegistrationSubscriber">
            <argument type="service" id="DisablePrivateCustomers\Validation\VatIdValidator"/>
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="DisablePrivateCustomers\Subscriber\RegistrationPageSubscriber">
            <argument type="service" id="request_stack"/>
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="DisablePrivateCustomers\Subscriber\LoginPageSubscriber">
            <tag name="kernel.event_subscriber"/>
        </service>
    </services>
</container>