Optimized twig and payment methods

This commit is contained in:
Kevin Frantz
2018-07-15 14:32:56 +02:00
parent 18382d6633
commit 3fdcd47e9c
5 changed files with 31 additions and 16 deletions

View File

@@ -6,6 +6,7 @@ use core\CoreInterface;
use repository\order\OrderInterface as OrderRepositoryInterface;
use repository\product\ProductInterface as ProductRepositoryInterface;
use repository\product\Product as ProductRepository;
use entity\payment\AbstractPayment;
/**
*
@@ -47,7 +48,8 @@ final class Order extends AbstractDefaultController implements OrderInterface
$this->postRoutine();
}
$this->render('order/basket.html.twig', [
'basket' => $this->core->getBasket()
'basket' => $this->core->getBasket(),
'payment_methods'=>AbstractPayment::getPaymentMethods(),
]);
}
@@ -57,8 +59,5 @@ final class Order extends AbstractDefaultController implements OrderInterface
$this->addProduct();
}
}
public function selectPaymentMethod(): void
{}
}