| @@ 101-117 (lines=17) @@ | ||
| 98 | * @Route("/{_admin}/setting/shop/delivery", name="admin_setting_shop_delivery") |
|
| 99 | * @Template("Setting/Shop/delivery.twig") |
|
| 100 | */ |
|
| 101 | public function index(Application $app, Request $request) |
|
| 102 | { |
|
| 103 | $Deliveries = $this->deliveryRepository |
|
| 104 | ->findBy([], ['rank' => 'DESC']); |
|
| 105 | ||
| 106 | $event = new EventArgs( |
|
| 107 | array( |
|
| 108 | 'Deliveries' => $Deliveries, |
|
| 109 | ), |
|
| 110 | $request |
|
| 111 | ); |
|
| 112 | $this->eventDispatcher->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_DELIVERY_INDEX_COMPLETE, $event); |
|
| 113 | ||
| 114 | return [ |
|
| 115 | 'Deliveries' => $Deliveries, |
|
| 116 | ]; |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * @Route("/{_admin}/setting/shop/delivery/new", name="admin_setting_shop_delivery_new") |
|
| @@ 88-107 (lines=20) @@ | ||
| 85 | * @Route("/{_admin}/setting/shop/payment", name="admin_setting_shop_payment") |
|
| 86 | * @Template("Setting/Shop/payment.twig") |
|
| 87 | */ |
|
| 88 | public function index(Application $app, Request $request) |
|
| 89 | { |
|
| 90 | $Payments = $this->paymentRepository |
|
| 91 | ->findBy( |
|
| 92 | array(), |
|
| 93 | array('rank' => 'DESC') |
|
| 94 | ); |
|
| 95 | ||
| 96 | $event = new EventArgs( |
|
| 97 | array( |
|
| 98 | 'Payments' => $Payments, |
|
| 99 | ), |
|
| 100 | $request |
|
| 101 | ); |
|
| 102 | $this->eventDispatcher->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_PAYMENT_INDEX_COMPLETE, $event); |
|
| 103 | ||
| 104 | return [ |
|
| 105 | 'Payments' => $Payments, |
|
| 106 | ]; |
|
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * @Route("/{_admin}/setting/shop/payment/new", name="admin_setting_shop_payment_new") |
|