Skip to content

Commit

Permalink
Merge pull request #168 from saidul/0.9
Browse files Browse the repository at this point in the history
#140 allow externally registered plugins for omnipay
  • Loading branch information
makasim committed Sep 4, 2014
2 parents 644df26 + 5311133 commit ecd57e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DependencyInjection/Factory/Payment/OmnipayPaymentFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Payum\Bundle\PayumBundle\DependencyInjection\Factory\Payment;

use Omnipay\Omnipay;
use Omnipay\Common\GatewayFactory;
use Payum\Core\Exception\RuntimeException;
use Payum\Core\Exception\LogicException;
Expand Down Expand Up @@ -55,7 +56,7 @@ public function addConfiguration(ArrayNodeDefinition $builder)
$builder
->validate()
->ifTrue(function($v) {
$gatewayFactory = new GatewayFactory;
$gatewayFactory = Omnipay::getFactory();
$gatewayFactory->find();

$supportedTypes = $gatewayFactory->all();
Expand Down Expand Up @@ -93,4 +94,4 @@ protected function addApis(Definition $paymentDefinition, ContainerBuilder $cont

$paymentDefinition->addMethodCall('addApi', array(new Reference($gatewayId)));
}
}
}

0 comments on commit ecd57e5

Please sign in to comment.