Move Payum related integrations to a dedicated folder

This commit is contained in:
Francis Hilaire 2024-02-03 17:33:41 +01:00 committed by Grzegorz Sadowski
parent b9b3cd2b2d
commit bd3337bceb
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
7 changed files with 7 additions and 15 deletions

View file

@ -35,11 +35,11 @@ final class SyliusPayumExtension extends AbstractResourceExtension implements Pr
$loader->load('services.xml');
if (class_exists(PaypalExpressCheckoutGatewayFactory::class)) {
$loader->load('paypal.xml');
$loader->load('integrations/payum/paypal.xml');
}
if (class_exists(StripeCheckoutGatewayFactory::class)) {
$loader->load('stripe.xml');
$loader->load('integrations/payum/stripe.xml');
}
$container->setParameter('payum.template.layout', $config['template']['layout']);
@ -89,19 +89,19 @@ final class SyliusPayumExtension extends AbstractResourceExtension implements Pr
$container->prependExtensionConfig('sylius_payment', ['gateways' => $gateways]);
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('integrations/payment_request.xml');
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/integrations/sylius_payment'));
$loader->load('services.xml');
if (class_exists(OfflineGatewayFactory::class)) {
$loader->load('integrations/offline.xml');
$loader->load('offline.xml');
}
if (class_exists(PaypalExpressCheckoutGatewayFactory::class)) {
$loader->load('integrations/paypal_express_checkout.xml');
$loader->load('paypal_express_checkout.xml');
}
if (class_exists(StripeCheckoutGatewayFactory::class)) {
$loader->load('integrations/stripe.xml');
$loader->load('stripe.xml');
}
}
}

View file

@ -16,10 +16,6 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd">
<imports>
<import resource="paypal/**.xml" />
</imports>
<services>
<defaults public="true" />

View file

@ -16,10 +16,6 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd">
<imports>
<import resource="stripe/**.xml" />
</imports>
<services>
<defaults public="true" />