|
|
|
|
|
|
|
|
namespace Lc\SovBundle\Controller\User; |
|
|
namespace Lc\SovBundle\Controller\User; |
|
|
|
|
|
|
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
|
|
|
use Lc\SovBundle\Controller\ControllerTrait; |
|
|
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\ProfileFormType; |
|
|
use Lc\SovBundle\Model\User\User; |
|
|
|
|
|
|
|
|
use Lc\SovBundle\Model\User\UserModel; |
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
use Symfony\Component\HttpFoundation\Response; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AccountAdminController extends AbstractController |
|
|
class AccountAdminController extends AbstractController |
|
|
{ |
|
|
{ |
|
|
|
|
|
use ControllerTrait; |
|
|
|
|
|
|
|
|
protected EntityManagerInterface $entityManager; |
|
|
protected EntityManagerInterface $entityManager; |
|
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $entityManager) |
|
|
public function __construct(EntityManagerInterface $entityManager) |
|
|
|
|
|
|
|
|
return $this->render( |
|
|
return $this->render( |
|
|
'@LcSov/admin/user/edit_password.html.twig', |
|
|
'@LcSov/admin/user/edit_password.html.twig', |
|
|
[ |
|
|
[ |
|
|
'entity_class' => User::class, |
|
|
|
|
|
|
|
|
'entity_class' => UserModel::class, |
|
|
'form' => $form->createView() |
|
|
'form' => $form->createView() |
|
|
] |
|
|
] |
|
|
); |
|
|
); |