<?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.state_resolver.order" class="Sylius\Component\Core\StateResolver\OrderStateResolver">
            <argument type="service" id="sylius_abstraction.state_machine" />
        </service>
        <service id="sylius.state_resolver.order_checkout" class="Sylius\Component\Core\StateResolver\CheckoutStateResolver">
            <argument type="service" id="sylius_abstraction.state_machine" />
            <argument type="service" id="sylius.checker.order_payment_method_selection_requirement" />
            <argument type="service" id="sylius.checker.order_shipping_method_selection_requirement" />
        </service>
        <service id="sylius.state_resolver.order_payment" class="Sylius\Component\Core\StateResolver\OrderPaymentStateResolver">
            <argument type="service" id="sylius_abstraction.state_machine" />
        </service>
        <service id="sylius.state_resolver.order_shipping" class="Sylius\Component\Core\StateResolver\OrderShippingStateResolver">
            <argument type="service" id="sylius_abstraction.state_machine" />
        </service>
    </services>
</container>
