Elcodi\Store\UserBundle\Controller\UserController::editAction PHP Метод

editAction() публичный Метод

User profile page
public editAction ( Elcodi\Component\User\Entity\Interfaces\CustomerInterface $customer, Symfony\Component\Form\FormView $formView, string $isValid ) : Response
$customer Elcodi\Component\User\Entity\Interfaces\CustomerInterface Customer
$formView Symfony\Component\Form\FormView Form view
$isValid string Is valid
Результат Symfony\Component\HttpFoundation\Response Response
    public function editAction(CustomerInterface $customer, FormView $formView, $isValid)
    {
        if ($isValid) {
            $this->get('elcodi.object_manager.customer')->flush($customer);
            $message = $this->get('translator')->trans('store.user.profile.save.message_ok');
            $this->addFlash('success', $message);
            return $this->redirect($this->generateUrl('store_user_edit'));
        }
        return $this->renderTemplate('Pages:user-edit.html.twig', ['form' => $formView]);
    }