mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Move Payum related integrations to a dedicated folder
This commit is contained in:
parent
b9b3cd2b2d
commit
bd3337bceb
7 changed files with 7 additions and 15 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
||||
|
|
@ -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" />
|
||||
|
||||
Loading…
Add table
Reference in a new issue