|
|
@@ -3,10 +3,11 @@ |
|
|
|
namespace Lc\SovBundle\Controller\User; |
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
|
use Lc\SovBundle\Controller\ControllerTrait; |
|
|
|
use Lc\SovBundle\Doctrine\EntityManager; |
|
|
|
use Lc\SovBundle\Form\User\ChangePasswordFormType; |
|
|
|
use Lc\SovBundle\Form\User\ProfileFormType; |
|
|
|
use Lc\SovBundle\Model\User\User; |
|
|
|
use Lc\SovBundle\Model\User\UserModel; |
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
@@ -16,6 +17,8 @@ use Symfony\Component\Routing\Annotation\Route; |
|
|
|
|
|
|
|
class AccountAdminController extends AbstractController |
|
|
|
{ |
|
|
|
use ControllerTrait; |
|
|
|
|
|
|
|
protected EntityManagerInterface $entityManager; |
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $entityManager) |
|
|
@@ -77,7 +80,7 @@ class AccountAdminController extends AbstractController |
|
|
|
return $this->render( |
|
|
|
'@LcSov/admin/user/edit_password.html.twig', |
|
|
|
[ |
|
|
|
'entity_class' => User::class, |
|
|
|
'entity_class' => UserModel::class, |
|
|
|
'form' => $form->createView() |
|
|
|
] |
|
|
|
); |