<?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="RiccardoNewsletter\Storefront\Twig\NewsletterExtension">
            <tag name="twig.extension"/>
        </service>

        <service id="RiccardoNewsletter\Storefront\Controller\NewsletterSubscribeController" public="true">
            <argument type="service" id="Shopware\Core\Content\Newsletter\SalesChannel\NewsletterSubscribeRoute"/>
            <argument type="service" id="Shopware\Core\Framework\Adapter\Translation\ConstraintViolationTranslator"/>
            <call method="setContainer"><argument type="service" id="service_container"/></call>
        </service>
        <service id="RiccardoNewsletter\Core\Content\Newsletter\ConfirmRouteDecorator"
                 decorates="Shopware\Core\Content\Newsletter\SalesChannel\NewsletterConfirmRoute">
            <argument type="service" id="RiccardoNewsletter\Core\Content\Newsletter\ConfirmRouteDecorator.inner"/>
            <argument type="service" id="newsletter_recipient.repository"/>
        </service>
    </services>
</container>
