Pārlūkot izejas kodu

Refactoring controller

feature/ticket
Fab pirms 3 gadiem
vecāks
revīzija
f306d16975
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      Controller/User/AccountAdminController.php

+ 2
- 1
Controller/User/AccountAdminController.php Parādīt failu

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

$form->handleRequest($request);


Notiek ielāde…
Atcelt
Saglabāt