private readonly AbstractChangeEmailRoute
$changeEmailRoute,
private readonly AbstractDeleteCustomerRoute
$deleteCustomerRoute,
private readonly LoggerInterface
$logger ) { } #[Route(path: '/account', name: 'frontend.account.home.page', defaults: ['_loginRequired' => true, '_noStore' => true], methods: ['GET'])]
public function index(Request
$request, SalesChannelContext
$context, CustomerEntity
$customer): Response
{ $page =
$this->overviewPageLoader->
load($request,
$context,
$customer);
$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));