ver. 0.269: ShopPaymentMethod refactor + Apilo keepalive
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
namespace admin\controls;
|
||||
class ShopPaymentMethod
|
||||
{
|
||||
public static function view_list()
|
||||
{
|
||||
return \Tpl::view( 'shop-payment-method/view-list', [
|
||||
'apilo_payment_types_list' => unserialize( \admin\factory\Integrations::apilo_settings( 'payment-types-list' ) ),
|
||||
] );
|
||||
}
|
||||
}
|
||||
@@ -18,9 +18,12 @@ class ShopTransport
|
||||
|
||||
public static function transport_edit()
|
||||
{
|
||||
global $mdb;
|
||||
$paymentMethodRepository = new \Domain\PaymentMethod\PaymentMethodRepository( $mdb );
|
||||
|
||||
return \Tpl::view( 'shop-transport/transport-edit', [
|
||||
'transport_details' => \admin\factory\ShopTransport::transport_details( \S::get( 'id' ) ),
|
||||
'payments_list' => \admin\factory\ShopPaymentMethod::payments_list(),
|
||||
'payments_list' => $paymentMethodRepository -> allForAdmin(),
|
||||
'apilo_carrier_account_list' => unserialize( \admin\factory\Integrations::apilo_settings( 'carrier-account-list' ) ),
|
||||
] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user