<?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>

        <service
                id="Kiener\MolliePayments\Compatibility\Bundles\FlowBuilder\Subscriber\BusinessEventCollectorSubscriber">
            <argument>%kernel.shopware_version%</argument>
            <argument type="service" id="Shopware\Core\Framework\Event\BusinessEventCollector"/>
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="Kiener\MolliePayments\Compatibility\Bundles\FlowBuilder\FlowBuilderFactory">
            <argument>%kernel.shopware_version%</argument>
            <argument type="service" id="Shopware\Core\Framework\Event\BusinessEventDispatcher" on-invalid="null"/>
            <argument type="service" id="Shopware\Core\Content\Flow\Dispatching\FlowDispatcher" on-invalid="null"/>
        </service>

        <service id="Kiener\MolliePayments\Compatibility\Bundles\FlowBuilder\FlowBuilderEventFactory">
            <argument type="service" id="Kiener\MolliePayments\Compatibility\VersionCompare"/>
            <argument type="service" id="Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory"/>
        </service>

    </services>

</container>
