/**
* @internal
*/
public function __construct( private readonly EventDispatcherInterface
$eventDispatcher,
private readonly NavigationLoaderInterface
$navigationLoader ) { } public function load(Request
$request, SalesChannelContext
$salesChannelContext): FooterPagelet
{ $footerId =
$salesChannelContext->
getSalesChannel()->
getFooterCategoryId();
$tree = null;
if ($footerId) { $navigationId =
$request->
get('navigationId',
$footerId);
$tree =
$this->navigationLoader->
load($navigationId,
$salesChannelContext,
$footerId);
} $pagelet =
new FooterPagelet($tree);
$this->eventDispatcher->
dispatch(