Skip to content

Commit

Permalink
allow 1.x payum versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Dec 17, 2015
1 parent 6451db6 commit 3b5967b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require": {
"php": ">=5.5.2",
"silex/silex": "~1.2",
"payum/core": "1.0.*@dev"
"payum/core": "^1.0"
},
"suggest": {
"payum/payum": "If you want to install all supported gateways at once"
Expand Down
4 changes: 3 additions & 1 deletion src/Payum/Silex/PayumProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ public function register(Application $app)
$builder->setCoreGatewayFactoryConfig([
'twig.env' => $app['twig'],

'payum.template.obtain_credit_card' => '@PayumSymfonyBridge/obtainCreditCard.html.twig',

'payum.action.get_http_request' => function() use ($app) {
$action = new GetHttpRequestAction();
$action->setHttpRequest($app['request']);

return $action;
},
'payum.action.obtain_credit_card' => function(ArrayObject $config) use($app) {
$action = new ObtainCreditCardAction($app['form.factory'], '@PayumSymfonyBridge/obtainCreditCard.html.twig');
$action = new ObtainCreditCardAction($app['form.factory'], $config['payum.template.obtain_credit_card']);
$action->setRequest($app['request']);

return $action;
Expand Down

0 comments on commit 3b5967b

Please sign in to comment.