Skip to content

Commit

Permalink
Fix deprecations (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Nov 20, 2023
1 parent ebce701 commit 6f1247d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -58,7 +58,7 @@
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.18",
"sonata-project/admin-bundle": "^4.0",
"sonata-project/admin-bundle": "^4.28",
"sonata-project/classification-bundle": "^4.0",
"sonata-project/doctrine-extensions": "^1.0 || ^2.0",
"sonata-project/doctrine-orm-admin-bundle": "^4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Controller/CkeditorAdminController.php
Expand Up @@ -111,7 +111,7 @@ public function browserAction(Request $request): Response
$formView = $datagrid->getForm()->createView();
$this->setFormTheme($formView, $this->admin->getFilterTheme());

return $this->renderWithExtraParams('@SonataFormatter/Ckeditor/browser.html.twig', [
return $this->render('@SonataFormatter/Ckeditor/browser.html.twig', [
'action' => 'browser',
'form' => $formView,
'datagrid' => $datagrid,
Expand Down Expand Up @@ -159,7 +159,7 @@ public function uploadAction(Request $request): Response
$request->get('format', MediaProviderInterface::FORMAT_REFERENCE)
);

return $this->renderWithExtraParams('@SonataFormatter/Ckeditor/upload.html.twig', [
return $this->render('@SonataFormatter/Ckeditor/upload.html.twig', [
'action' => 'list',
'object' => $media,
'format' => $format,
Expand Down

0 comments on commit 6f1247d

Please sign in to comment.