$this->
hook(new AccountOverviewPageLoadedHook($page,
$context));
return $this->
renderStorefront('@Storefront/storefront/page/account/index.html.twig',
['page' =>
$page]);
} #[Route(path: '/account/profile', name: 'frontend.account.profile.page', defaults: ['_loginRequired' => true, '_noStore' => true], methods: ['GET'])]
public function profileOverview(Request
$request, SalesChannelContext
$context): Response
{ $page =
$this->profilePageLoader->
load($request,
$context);
$this->
hook(new AccountProfilePageLoadedHook($page,
$context));
return $this->
renderStorefront('@Storefront/storefront/page/account/profile/index.html.twig',
[ 'page' =>
$page,
'passwordFormViolation' =>
$request->
get('passwordFormViolation'
),
'emailFormViolation' =>
$request->
get('emailFormViolation'
),
]);
} #[Route(path: '/account/profile', name: 'frontend.account.profile.save', defaults: ['_loginRequired' => true], methods: ['POST'])]
public function saveProfile(RequestDataBag
$data, SalesChannelContext
$context, CustomerEntity
$customer): Response
{