Skip to content

Commit

Permalink
Added calling reset second time
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed May 5, 2023
1 parent db74ac4 commit a16f380
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bundle/Controller/RecommendationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ public function showRecommendationsAction(Request $request): Response
$this->encoreTagRenderer->reset();
$this->entrypointLookupCollection->getEntrypointLookup('ezplatform')->reset();

return $response->setContent(
$response->setContent(
$this->twig()->render($template, [
'recommendations' => $event->getRecommendationItems(),
'templateId' => Uuid::uuid4()->toString(),
])
);

$this->encoreTagRenderer->reset();
$this->entrypointLookupCollection->getEntrypointLookup('ezplatform')->reset();

return $response;
}

protected function twig(): Environment
Expand Down

0 comments on commit a16f380

Please sign in to comment.