| @@ 103-119 (lines=17) @@ | ||
| 100 | return $app->redirect($app->url('admin_setting_shop_mail')); |
|
| 101 | } |
|
| 102 | ||
| 103 | if ($form->isValid()) { |
|
| 104 | ||
| 105 | $this->entityManager->flush(); |
|
| 106 | ||
| 107 | $event = new EventArgs( |
|
| 108 | array( |
|
| 109 | 'form' => $form, |
|
| 110 | 'Mail' => $Mail, |
|
| 111 | ), |
|
| 112 | $request |
|
| 113 | ); |
|
| 114 | $this->eventDispatcher->dispatch(EccubeEvents::ADMIN_SETTING_SHOP_MAIL_INDEX_COMPLETE, $event); |
|
| 115 | ||
| 116 | $app->addSuccess('admin.shop.mail.save.complete', 'admin'); |
|
| 117 | ||
| 118 | return $app->redirect($app->url('admin_setting_shop_mail_edit', array('id' => $Mail->getId()))); |
|
| 119 | } |
|
| 120 | } |
|
| 121 | ||
| 122 | return [ |
|
| @@ 376-391 (lines=16) @@ | ||
| 373 | $this->eventDispatcher->dispatch(EccubeEvents::FRONT_PRODUCT_FAVORITE_ADD_COMPLETE, $event); |
|
| 374 | ||
| 375 | return $app->redirect($app->url('product_detail', array('id' => $Product->getId()))); |
|
| 376 | } else { |
|
| 377 | // 非会員の場合、ログイン画面を表示 |
|
| 378 | // ログイン後の画面遷移先を設定 |
|
| 379 | $app->setLoginTargetPath($app->url('product_add_favorite', array('id' => $Product->getId()))); |
|
| 380 | $this->session->getFlashBag()->set('eccube.add.favorite', true); |
|
| 381 | ||
| 382 | $event = new EventArgs( |
|
| 383 | array( |
|
| 384 | 'Product' => $Product, |
|
| 385 | ), |
|
| 386 | $request |
|
| 387 | ); |
|
| 388 | $this->eventDispatcher->dispatch(EccubeEvents::FRONT_PRODUCT_FAVORITE_ADD_COMPLETE, $event); |
|
| 389 | ||
| 390 | return $app->redirect($app->url('mypage_login')); |
|
| 391 | } |
|
| 392 | } |
|
| 393 | ||
| 394 | /** |
|