Skip to content

Commit

Permalink
Add Symfony 6.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCadien committed Dec 21, 2023
1 parent dfcb329 commit cc57a8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Controller/Website/NewsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function index(News $news, $attributes = [], $preview = false, $partial =
}

if ($partial) {
$content = $this->renderBlock(
$content = $this->renderBlockView(
'news/index.html.twig',
'content',
['news' => $news]
Expand Down Expand Up @@ -61,7 +61,7 @@ protected function renderPreview(string $view, array $parameters = []): string
/**
* Returns rendered part of template specified by block.
*/
protected function renderBlock(mixed $template, mixed $block, mixed $attributes = [])
protected function renderBlockView(mixed $template, mixed $block, mixed $attributes = []): string
{
$twig = $this->container->get('twig');
$attributes = $twig->mergeGlobals($attributes);
Expand All @@ -72,7 +72,7 @@ protected function renderBlock(mixed $template, mixed $block, mixed $attributes
\ob_start();

try {
$rendered = $template->renderBlock($block, $attributes);
$rendered = $template->renderBlockView($block, $attributes);
\ob_end_clean();

return $rendered;
Expand Down

0 comments on commit cc57a8e

Please sign in to comment.