<?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>
        <service
            id="sylius_admin.twig.component.order.address_history"
            class="Sylius\Bundle\AdminBundle\Twig\Component\Order\AddressHistoryComponent"
        >
            <argument type="service" id="sylius.repository.address_log_entry" />

            <tag name="sylius.twig_component" key="sylius_admin:order:address_history" />
        </service>

        <service
            id="sylius_admin.twig.component.order.form"
            class="Sylius\Bundle\AdminBundle\Twig\Component\Order\FormComponent"
        >
            <argument type="service" id="sylius.repository.order" />
            <argument type="service" id="form.factory" />
            <argument>%sylius.model.order.class%</argument>
            <argument>Sylius\Bundle\AdminBundle\Form\Type\OrderType</argument>

            <tag name="sylius.live_component.admin" key="sylius_admin:order:form" />
        </service>
    </services>
</container>
