Eccube\Controller\Admin\Customer\CustomerController::resend PHP Method

resend() public method

public resend ( Application $app, Request $request, $id )
$app Eccube\Application
$request Symfony\Component\HttpFoundation\Request
    public function resend(Application $app, Request $request, $id)
    {
        $this->isTokenValid($app);
        $Customer = $app['orm.em']->getRepository('Eccube\\Entity\\Customer')->find($id);
        if (is_null($Customer)) {
            throw new NotFoundHttpException();
        }
        $activateUrl = $app->url('entry_activate', array('secret_key' => $Customer->getSecretKey()));
        // メール送信
        $app['eccube.service.mail']->sendAdminCustomerConfirmMail($Customer, $activateUrl);
        $event = new EventArgs(array('Customer' => $Customer, 'activateUrl' => $activateUrl), $request);
        $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_CUSTOMER_RESEND_COMPLETE, $event);
        $app->addSuccess('admin.customer.resend.complete', 'admin');
        return $app->redirect($app->url('admin_customer'));
    }