<?xml version="1.0" encoding="UTF-8"?>

<!--

 This file is part of the Sylius package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<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 id="sylius.controller.shop.contact" class="Sylius\Bundle\ShopBundle\Controller\ContactController">
            <argument type="service" id="router" />
            <argument type="service" id="form.factory" />
            <argument type="service" id="twig" />
            <argument type="service" id="sylius.context.channel" />
            <argument type="service" id="sylius.context.customer" />
            <argument type="service" id="sylius.context.locale" />
            <argument type="service" id="sylius.mailer.contact_email_manager.shop" />
        </service>

        <service id="sylius.controller.shop.homepage" class="Sylius\Bundle\ShopBundle\Controller\HomepageController">
            <argument type="service" id="twig" />
        </service>

        <service id="sylius.controller.shop.currency_switch" class="Sylius\Bundle\ShopBundle\Controller\CurrencySwitchController">
            <argument type="service" id="twig" />
            <argument type="service" id="sylius.context.currency" />
            <argument type="service" id="sylius.storage.currency" />
            <argument type="service" id="sylius.context.channel" />
        </service>

        <service id="sylius.controller.shop.locale_switch" class="Sylius\Bundle\ShopBundle\Controller\LocaleSwitchController">
            <argument type="service" id="twig" />
            <argument type="service" id="sylius.context.locale" />
            <argument type="service" id="sylius.locale_provider" />
            <argument type="service" id="sylius.shop.locale_switcher" />
        </service>

        <service id="sylius.controller.shop.security_widget" class="Sylius\Bundle\ShopBundle\Controller\SecurityWidgetController">
            <argument type="service" id="twig" />
        </service>

        <service id="sylius.controller.shop.register_thank_you" class="Sylius\Bundle\ShopBundle\Controller\RegistrationThankYouController">
            <argument type="service" id="twig" />
            <argument type="service" id="sylius.context.channel" />
            <argument type="service" id="router.default" />

            <tag name="controller.service_arguments" />
        </service>
    </services>
</container>
