$this->
addFlash($type,
$message);
} } } /**
* @param array<string, mixed> $parameters
*/
protected function redirectToRoute(string
$route, array
$parameters =
[], int
$status = Response::HTTP_FOUND
): RedirectResponse
{ $event =
new StorefrontRedirectEvent($route,
$parameters,
$status);
$this->container->
get('event_dispatcher'
)->
dispatch($event);
return parent::
redirectToRoute($event->
getRoute(),
$event->
getParameters(),
$event->
getStatus());
} /**
* @param array<string, mixed> $parameters
*/
protected function renderView(string
$view, array
$parameters =
[]): string
{ $view =
$this->
getTemplateFinder()->
find($view);