<?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.admin.product.create_configurable.class">Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPage</parameter>
        <parameter key="sylius.behat.page.admin.product.create_simple.class">Sylius\Behat\Page\Admin\Product\CreateSimpleProductPage</parameter>
        <parameter key="sylius.behat.page.admin.product.index.class">Sylius\Behat\Page\Admin\Product\IndexPage</parameter>
        <parameter key="sylius.behat.page.admin.product.index_per_taxon.class">Sylius\Behat\Page\Admin\Product\IndexPerTaxonPage</parameter>
        <parameter key="sylius.behat.page.admin.product.show.class">Sylius\Behat\Page\Admin\Product\ShowPage</parameter>
        <parameter key="sylius.behat.page.admin.product.update_simple.class">Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPage</parameter>
        <parameter key="sylius.behat.page.admin.product.update_configurable.class">Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPage</parameter>
    </parameters>

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

        <service id="sylius.behat.page.admin.product.create_configurable" class="%sylius.behat.page.admin.product.create_configurable.class%" parent="sylius.behat.page.admin.crud.create" public="false">
            <argument type="string">sylius_admin_product_create</argument>
        </service>
        <service id="sylius.behat.page.admin.product.create_simple" class="%sylius.behat.page.admin.product.create_simple.class%" parent="sylius.behat.page.admin.crud.create" public="false">
            <argument type="string">sylius_admin_product_create</argument>
        </service>
        <service id="sylius.behat.page.admin.product.index" class="%sylius.behat.page.admin.product.index.class%" parent="sylius.behat.page.admin.crud.index" public="false">
            <argument type="string">sylius_admin_product_index</argument>
            <argument type="service" id="sylius.behat.checker.image_existence" />
        </service>
        <service id="sylius.behat.page.admin.product.index_per_taxon" class="%sylius.behat.page.admin.product.index_per_taxon.class%" parent="sylius.behat.page.admin.crud.index" public="false">
            <argument type="string">sylius_admin_product_per_taxon_index</argument>
        </service>
        <service id="sylius.behat.page.admin.product.update_configurable" class="%sylius.behat.page.admin.product.update_configurable.class%" parent="sylius.behat.page.admin.crud.update" public="false">
            <argument type="string">sylius_admin_product_update</argument>
        </service>
        <service id="sylius.behat.page.admin.product.update_simple" class="%sylius.behat.page.admin.product.update_simple.class%" parent="sylius.behat.page.admin.crud.update" public="false">
            <argument type="string">sylius_admin_product_update</argument>
        </service>
        <service id="sylius.behat.page.admin.product.show_page" class="%sylius.behat.page.admin.product.show.class%" parent="sylius.behat.symfony_page" public="false" />
    </services>
</container>
