<?xml version="1.0" ?>

<container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		   xmlns="http://symfony.com/schema/dic/services"
		   xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

	<services>
		<!-- Controllers -->
		<service id="VRPaymentPayment\Core\Storefront\Account\Controller\AccountOrderController" public="true">
			<argument type="service" id="VRPaymentPayment\Core\Api\Transaction\Service\TransactionService"/>
			<argument type="service" id="Symfony\Component\HttpFoundation\RequestStack"/>
			<argument type="service" id="VRPaymentPayment\Core\Checkout\Service\InvoiceService"/>
			<call method="setLogger">
				<argument type="service" id="monolog.logger.vrpayment_payment"/>
			</call>
			<call method="setContainer">
				<argument type="service" id="service_container"/>
			</call>
		</service>

		<!-- Subscribers -->
		<service id="VRPaymentPayment\Core\Storefront\Account\Subscriber\AccountOrderSubscriber">
			<argument id="VRPaymentPayment\Core\Settings\Service\SettingsService" type="service"/>
			<call method="setLogger">
				<argument type="service" id="monolog.logger.vrpayment_payment"/>
			</call>
			<tag name="kernel.event_subscriber"/>
		</service>

	</services>

</container>
