<?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\ExpressCheckout\Service\PayPalExpressCheckoutDataService">
            <argument type="service" id="Shopware\Core\Checkout\Cart\SalesChannel\CartService"/>
            <argument type="service" id="Swag\PayPal\Util\LocaleCodeProvider"/>
            <argument type="service" id="router"/>
            <argument type="service" id="Swag\PayPal\Util\PaymentMethodUtil"/>
            <argument type="service" id="Shopware\Core\System\SystemConfig\SystemConfigService"/>
            <argument type="service" id="Swag\PayPal\Setting\Service\CredentialsUtil"/>
            <argument type="service" id="Swag\PayPal\Checkout\Cart\Service\CartPriceService"/>
            <argument type="service" id="Swag\PayPal\Util\Lifecycle\Method\PayLaterMethodData"/>
        </service>

        <service id="Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressPrepareCheckoutRoute" public="true">
            <argument type="service" id="Swag\PayPal\Checkout\ExpressCheckout\Service\ExpressCustomerService"/>
            <argument type="service" id="Shopware\Core\System\SalesChannel\Context\SalesChannelContextFactory"/>
            <argument type="service" id="Swag\PayPal\RestApi\V2\Resource\OrderResource"/>
            <argument type="service" id="Shopware\Core\Checkout\Cart\SalesChannel\CartService"/>
            <argument type="service" id="monolog.logger.paypal"/>
        </service>

        <service id="Swag\PayPal\Checkout\ExpressCheckout\Service\ExpressCustomerService">
            <argument type="service" id="Shopware\Core\Checkout\Customer\SalesChannel\RegisterRoute"/>
            <argument type="service" id="country.repository"/>
            <argument type="service" id="country_state.repository"/>
            <argument type="service" id="salutation.repository"/>
            <argument type="service" id="customer.repository"/>
            <argument type="service" id="Shopware\Core\Checkout\Customer\SalesChannel\AccountService"/>
            <argument type="service" id="Shopware\Core\System\SystemConfig\SystemConfigService"/>
            <argument type="service" id="monolog.logger.paypal"/>
        </service>

        <service id="Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressCreateOrderRoute" public="true">
            <argument type="service" id="Shopware\Core\Checkout\Cart\SalesChannel\CartService"/>
            <argument type="service" id="Swag\PayPal\OrdersApi\Builder\PayPalOrderBuilder"/>
            <argument type="service" id="Swag\PayPal\RestApi\V2\Resource\OrderResource"/>
            <argument type="service" id="Swag\PayPal\Checkout\Cart\Service\CartPriceService"/>
            <argument type="service" id="monolog.logger.paypal"/>
        </service>

        <service id="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutSubscriber">
            <argument type="service" id="Swag\PayPal\Checkout\ExpressCheckout\Service\PayPalExpressCheckoutDataService"/>
            <argument type="service" id="Swag\PayPal\Setting\Service\SettingsValidationService"/>
            <argument type="service" id="Shopware\Core\System\SystemConfig\SystemConfigService"/>
            <argument type="service" id="Swag\PayPal\Util\PaymentMethodUtil"/>
            <argument type="service" id="Swag\PayPal\Checkout\Cart\Service\ExcludedProductValidator"/>
            <argument type="service" id="customer.repository"/>
            <argument type="service" id="monolog.logger.paypal"/>
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressCategoryRoute" decorates="Shopware\Core\Content\Category\SalesChannel\CategoryRoute" decoration-priority="-2000" public="true">
            <argument type="service" id="Swag\PayPal\Checkout\ExpressCheckout\SalesChannel\ExpressCategoryRoute.inner"/>
            <argument type="service" id="Swag\PayPal\Checkout\ExpressCheckout\Service\PayPalExpressCheckoutDataService"/>
            <argument type="service" id="Swag\PayPal\Setting\Service\SettingsValidationService"/>
            <argument type="service" id="Shopware\Core\System\SystemConfig\SystemConfigService"/>
            <argument type="service" id="Swag\PayPal\Util\PaymentMethodUtil"/>
        </service>
    </services>
</container>
