[PaymentRequest] Move Payum command providers to PayumBundle

This commit is contained in:
Grzegorz Sadowski 2024-09-27 10:51:57 +02:00
parent 9e7dc44763
commit 9317c34830
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
5 changed files with 38 additions and 38 deletions

View file

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Sylius Sp. z o.o.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<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.payment_request.command_provider.payum.offline" class="Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\ActionsCommandProvider">
<argument type="tagged_locator" tag="sylius.payment_request.command_provider.payum.offline" index-by="action" />
<tag name="sylius.payment_request.command_provider" gateway-factory="offline" priority="100" />
</service>
<service id="sylius.payment_request.command_provider.payum.offline.capture" class="Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\Payum\CaptureCommandProvider">
<tag name="sylius.payment_request.command_provider.payum.offline" action="capture" />
</service>
<service id="sylius.payment_request.command_provider.payum.offline.status" class="Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\Payum\StatusCommandProvider">
<tag name="sylius.payment_request.command_provider.payum.offline" action="status" />
</service>
</services>
</container>

View file

@ -11,7 +11,7 @@
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\Payum;
namespace Sylius\Bundle\PayumBundle\PaymentRequest\CommandProvider;
use Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\PaymentRequestCommandProviderInterface;
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\AuthorizePaymentRequest;

View file

@ -11,7 +11,7 @@
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\Payum;
namespace Sylius\Bundle\PayumBundle\PaymentRequest\CommandProvider;
use Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\PaymentRequestCommandProviderInterface;
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\CapturePaymentRequest;

View file

@ -11,7 +11,7 @@
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\Payum;
namespace Sylius\Bundle\PayumBundle\PaymentRequest\CommandProvider;
use Sylius\Bundle\CoreBundle\PaymentRequest\CommandProvider\PaymentRequestCommandProviderInterface;
use Sylius\Bundle\PayumBundle\PaymentRequest\Command\StatusPaymentRequest;

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Sylius Sp. z o.o.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<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.payum.payment_request.command_provider.offline" class="Sylius\Bundle\PaymentBundle\CommandProvider\ActionsCommandProvider">
<argument type="tagged_locator" tag="sylius.payum.payment_request.command_provider.offline" index-by="action" />
<tag name="sylius.payment_request.command_provider" gateway-factory="offline" priority="100" />
</service>
<service id="sylius.payum.payment_request.command_provider.offline.capture" class="Sylius\Bundle\PayumBundle\PaymentRequest\CommandProvider\CaptureCommandProvider">
<tag name="sylius.payum.payment_request.command_provider.offline" action="capture" />
</service>
<service id="sylius.payum.payment_request.command_provider.offline.status" class="Sylius\Bundle\PayumBundle\PaymentRequest\CommandProvider\StatusCommandProvider">
<tag name="sylius.payum.payment_request.command_provider.offline" action="status" />
</service>
</services>
</container>