private readonly EventDispatcherInterface
$eventDispatcher ) { } #[Route(path: '/wishlist', name: 'frontend.wishlist.page', options: ['seo' => false], defaults: ['_noStore' => true], methods: ['GET'])]
public function index(Request
$request, SalesChannelContext
$context): Response
{ $customer =
$context->
getCustomer();
if ($customer !== null &&
$customer->
getGuest() === false
) { $page =
$this->wishlistPageLoader->
load($request,
$context,
$customer);
$this->
hook(new WishlistPageLoadedHook($page,
$context));
} else { $page =
$this->guestPageLoader->
load($request,
$context);
$this->
hook(new GuestWishlistPageLoadedHook($page,
$context));
} return $this->
renderStorefront('@Storefront/storefront/page/wishlist/index.html.twig',
['page' =>
$page]);
} #[Route(path: '/wishlist/guest-pagelet', name: 'frontend.wishlist.guestPage.pagelet', options: ['seo' => false], defaults: ['XmlHttpRequest' => true], methods: ['POST'])]
public function guestPagelet(Request
$request, SalesChannelContext
$context): Response
{