Browse Source

Refactoring controller

feature/ticket
Fab 3 years ago
parent
commit
f306d16975
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      Controller/User/AccountAdminController.php

+ 2
- 1
Controller/User/AccountAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Provider\AdminContextProvider; use EasyCorp\Bundle\EasyAdminBundle\Provider\AdminContextProvider;
use Lc\SovBundle\Doctrine\EntityManager; use Lc\SovBundle\Doctrine\EntityManager;
use Lc\SovBundle\Form\User\ChangePasswordFormType; use Lc\SovBundle\Form\User\ChangePasswordFormType;
use Lc\SovBundle\Form\User\ProfileFormType;
use Lc\SovBundle\Form\User\UserMerchantFormType; use Lc\SovBundle\Form\User\UserMerchantFormType;
use Lc\SovBundle\Model\User\User; use Lc\SovBundle\Model\User\User;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
public function profile(Request $request): Response public function profile(Request $request): Response
{ {
$user = $this->getUser(); $user = $this->getUser();
$form = $this->createForm(UserMerchantFormType::class, $user);
$form = $this->createForm(ProfileFormType::class, $user);


$form->handleRequest($request); $form->handleRequest($request);



Loading…
Cancel
Save