Implement caching of query dto
This commit is contained in:
@ -17,10 +17,8 @@ use Symfony\Component\Uid\Uuid;
|
||||
class UserController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManagerInterface $em,
|
||||
)
|
||||
{
|
||||
}
|
||||
private readonly EntityManagerInterface $em,
|
||||
) {}
|
||||
|
||||
#[Route('/profile', name: '_profile')]
|
||||
public function profile(
|
||||
@ -45,7 +43,8 @@ class UserController extends AbstractController
|
||||
$user,
|
||||
$form->get('plainPassword')->getData()
|
||||
)
|
||||
);
|
||||
)
|
||||
;
|
||||
}
|
||||
}
|
||||
$this->addFlash('success', 'Profile updated successfully');
|
||||
|
Reference in New Issue
Block a user