<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>
        <defaults public="true" />

        <service class="WeloAutomaticDocuments\Components\Configuration" id="welo_automatic_documents.components.configuration">
            <argument>%welo_automatic_documents.namespace%</argument>
            <argument id="shopware.plugin.cached_config_reader" type="service"/>
            <argument type="service" id="service_container"/>
            <argument type="service" id="models"/>
        </service>

        <service class="WeloAutomaticDocuments\Components\Services\Document" id="welo_automatic_documents.components.services.document">
            <argument id="models" type="service"/>
            <argument type="service" id="service_container"/>
        </service>

        <service class="WeloAutomaticDocuments\Subscriber\Mail" id="welo_automatic_documents.subscriber.mail">
            <argument id="models" type="service"/>
            <argument id="welo_automatic_documents.components.services.document" type="service"/>
            <argument type="service" id="welo_automatic_documents.components.configuration"/>
            <tag name="shopware.event_subscriber"/>
            <argument type="service" id="welo_automatic_documents.components.services.attribute_service"/>
        </service>

        <service class="WeloAutomaticDocuments\Subscriber\Document" id="welo_automatic_documents.subscriber.document">
            <argument id="models" type="service"/>
            <argument type="service" id="welo_automatic_documents.components.configuration"/>
            <tag name="shopware.event_subscriber"/>
            <argument type="service" id="welo_automatic_documents.components.services.attribute_service"/>
        </service>

        <service class="WeloAutomaticDocuments\Subscriber\Template" id="welo_automatic_documents.subscriber.template">
            <argument>%welo_automatic_documents.plugin_dir%</argument>
            <tag name="shopware.event_subscriber"/>
        </service>

        <service class="WeloAutomaticDocuments\Components\Services\AttributeService" id="welo_automatic_documents.components.services.attribute_service">
            <argument id="models" type="service"/>
            <argument type="service" id="welo_automatic_documents.components.configuration"/>
            <argument type="service" id="shopware_attribute.data_loader"/>
        </service>

    </services>
</container>
