Skip to content

Commit

Permalink
Fix deprecation (#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Nov 20, 2023
1 parent 574340b commit 6606924
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.18",
"sonata-project/admin-bundle": "^4.9",
"sonata-project/admin-bundle": "^4.28",
"sonata-project/block-bundle": "^4.11 || ^5.0",
"sonata-project/classification-bundle": "^4.0",
"sonata-project/doctrine-orm-admin-bundle": "^4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/GalleryAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function listAction(Request $request): Response
$exportFormats = $exporter->getAvailableFormats($this->admin);
}

return $this->renderWithExtraParams($this->admin->getTemplateRegistry()->getTemplate('list'), [
return $this->render($this->admin->getTemplateRegistry()->getTemplate('list'), [
'action' => 'list',
'form' => $formView,
'datagrid' => $datagrid,
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/MediaAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function createAction(Request $request): Response
$pool = $this->container->get('sonata.media.pool');
\assert($pool instanceof Pool);

return $this->renderWithExtraParams('@SonataMedia/MediaAdmin/select_provider.html.twig', [
return $this->render('@SonataMedia/MediaAdmin/select_provider.html.twig', [
'providers' => $pool->getProvidersByContext(
$request->query->get('context', $pool->getDefaultContext())
),
Expand Down Expand Up @@ -128,7 +128,7 @@ public function listAction(Request $request): Response
$exportFormats = $exporter->getAvailableFormats($this->admin);
}

return $this->renderWithExtraParams($this->admin->getTemplateRegistry()->getTemplate('list'), [
return $this->render($this->admin->getTemplateRegistry()->getTemplate('list'), [
'action' => 'list',
'form' => $formView,
'datagrid' => $datagrid,
Expand Down

0 comments on commit 6606924

Please sign in to comment.