<?xml version="1.0" ?>

<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.controller.payum" class="Sylius\Bundle\PayumBundle\Controller\PayumController" public="true">
            <argument type="service" id="payum" />
            <argument type="service" id="sylius.repository.order" />
            <argument type="service">
                <service class="Sylius\Component\Resource\Metadata\MetadataInterface">
                    <factory service="sylius.resource_registry" method="get" />
                    <argument type="string">sylius.order</argument>
                </service>
            </argument>
            <argument type="service" id="sylius.resource_controller.request_configuration_factory" />
            <argument type="service" id="router" />
            <argument type="service" id="sylius.factory.payum_get_status_action" />
            <argument type="service" id="sylius.factory.payum_resolve_next_route" />
        </service>
    </services>
</container>
