From 23bf6bbf7eb971fdd9a44d41fbd2bb9614d339b6 Mon Sep 17 00:00:00 2001 From: Saidul Islam Date: Thu, 4 Sep 2014 17:17:15 +0600 Subject: [PATCH 1/2] #140 allow externally registered plugins for omnipay --- DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php b/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php index 282e815c..3eb78a4a 100644 --- a/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php +++ b/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php @@ -55,7 +55,7 @@ public function addConfiguration(ArrayNodeDefinition $builder) $builder ->validate() ->ifTrue(function($v) { - $gatewayFactory = new GatewayFactory; + $gatewayFactory = Omnipay::getFactory(); $gatewayFactory->find(); $supportedTypes = $gatewayFactory->all(); @@ -93,4 +93,4 @@ protected function addApis(Definition $paymentDefinition, ContainerBuilder $cont $paymentDefinition->addMethodCall('addApi', array(new Reference($gatewayId))); } -} \ No newline at end of file +} From 5311133702beac688756a965230de94e4e2e1d8a Mon Sep 17 00:00:00 2001 From: Saidul Islam Date: Thu, 4 Sep 2014 17:25:09 +0600 Subject: [PATCH 2/2] add missing use statement --- DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php b/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php index 3eb78a4a..dc7bd788 100644 --- a/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php +++ b/DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php @@ -1,6 +1,7 @@