<?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.behat.context.hook.doctrine_orm" class="Sylius\Behat\Context\Hook\DoctrineORMContext">
            <argument type="service" id="doctrine.orm.entity_manager" />
        </service>

        <service id="sylius.behat.context.hook.session" class="Sylius\Behat\Context\Hook\SessionContext">
            <argument type="service" id="request_stack" />
            <argument type="service" id="session.factory" on-invalid="null" />
        </service>

        <service id="sylius.behat.context.hook.test_theme" class="Sylius\Behat\Context\Hook\TestThemeContext">
            <argument type="service" id="Sylius\Bundle\ThemeBundle\Configuration\Test\TestThemeConfigurationManagerInterface" />
        </service>

        <service id="sylius.behat.context.hook.mailer" class="Sylius\Behat\Context\Hook\MailerContext">
            <argument type="service" id="test.mailer_pool"/>
        </service>

        <service id="sylius.behat.context.hook.cache" class="Sylius\Behat\Context\Hook\CacheContext">
            <argument type="service" id="cache.app" />
        </service>
    </services>
</container>
