<?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="Swag\PayPal\Checkout\Order\Shipping\ShippingSubscriber">
            <argument type="service" id="messenger.default_bus"/>

            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="Swag\PayPal\Checkout\Order\Shipping\MessageQueue\ShippingInformationMessageHandler">
            <argument type="service" id="order_delivery.repository"/>
            <argument type="service" id="Swag\PayPal\RestApi\V2\Resource\OrderResource"/>
            <argument type="service" id="monolog.logger.paypal"/>

            <tag name="messenger.message_handler" />
        </service>
    </services>
</container>
