Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Updated payment_methods wrapper usage
Browse files Browse the repository at this point in the history
* Passing Cart as parameter (new elcodi/elcodi feature in https://github.com/elcodi/elcodi/issues/893)
  • Loading branch information
mmoreram committed Oct 13, 2015
1 parent 8cc7e7a commit 3c7f25d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Elcodi/Store/CartBundle/Controller/CheckoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function paymentAction(CartInterface $cart)
*/
$paymentMethods = $this
->get('elcodi.wrapper.payment_methods')
->get();
->get($cart);

/**
* Available shipping methods
Expand Down Expand Up @@ -306,7 +306,8 @@ public function paymentAction(CartInterface $cart)
/**
* Checkout shipping range
*
* @param CartInterface $cart Cart
* @param CartInterface $cart Cart
* @param string $shippingMethod Shipping method
*
* @return Response Response
*
Expand All @@ -324,8 +325,10 @@ public function paymentAction(CartInterface $cart)
* name = "cart"
* )
*/
public function applyShippingMethodAction(CartInterface $cart, $shippingMethod)
{
public function applyShippingMethodAction(
CartInterface $cart,
$shippingMethod
) {
/**
* Desired shipping method
*/
Expand Down

0 comments on commit 3c7f25d

Please sign in to comment.