src/PHPDish/Bundle/UserBundle/Controller/ResettingController.php
public function requestAction()
    {
        $form = $this->createForm(ResettingRequestType::class, null, [
            'action' => $this->generateUrl('fos_user_resetting_send_email')
        ]);
        return $this->render($this->configuration->getTemplate('Resetting:request.html.twig'), [
            'form' => $form->createView(),
            'lastUsername' => $this->get('session')->get(static::LAST_USERNAME_SESSION_KEY) ?: ''
        ]);
    }
public function requestAction()
    {
        $form = $this->createForm(ResettingRequestType::class, null, [
            'action' => $this->generateUrl('fos_user_resetting_send_email')
        ]);
        return $this->render($this->configuration->getTemplate('Resetting:request.html.twig'), [
            'form' => $form->createView(),
            'lastUsername' => $this->get('session')->get(static::LAST_USERNAME_SESSION_KEY) ?: ''
        ]);
    }
重置密码
{@inheritdoc}