<?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">
    <parameters>
        <parameter key="sylius.behat.page.shop.checkout.address.class">Sylius\Behat\Page\Shop\Checkout\AddressPage</parameter>
        <parameter key="sylius.behat.page.shop.checkout.select_payment.class">Sylius\Behat\Page\Shop\Checkout\SelectPaymentPage</parameter>
        <parameter key="sylius.behat.page.shop.checkout.select_shipping.class">Sylius\Behat\Page\Shop\Checkout\SelectShippingPage</parameter>
        <parameter key="sylius.behat.page.shop.checkout.complete.class">Sylius\Behat\Page\Shop\Checkout\CompletePage</parameter>
    </parameters>

    <services>
        <defaults public="true" />

        <service id="sylius.behat.page.shop.checkout.address" class="%sylius.behat.page.shop.checkout.address.class%" parent="sylius.behat.symfony_page" public="false" >
            <argument type="service" id="sylius.factory.address" />
        </service>
        <service id="sylius.behat.page.shop.checkout.select_payment" class="%sylius.behat.page.shop.checkout.select_payment.class%" parent="sylius.behat.symfony_page" public="false" />
        <service id="sylius.behat.page.shop.checkout.select_shipping" class="%sylius.behat.page.shop.checkout.select_shipping.class%" parent="sylius.behat.symfony_page" public="false" />
        <service id="sylius.behat.page.shop.checkout.complete" class="%sylius.behat.page.shop.checkout.complete.class%" parent="sylius.behat.symfony_page" public="false">
            <argument type="service" id="sylius.behat.table_accessor" />
        </service>
    </services>
</container>
