Skip to content

Commit 6f1247d

Browse files
Fix deprecations (#774)
1 parent ebce701 commit 6f1247d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"psalm/plugin-phpunit": "^0.18",
5959
"psalm/plugin-symfony": "^5.0",
6060
"rector/rector": "^0.18",
61-
"sonata-project/admin-bundle": "^4.0",
61+
"sonata-project/admin-bundle": "^4.28",
6262
"sonata-project/classification-bundle": "^4.0",
6363
"sonata-project/doctrine-extensions": "^1.0 || ^2.0",
6464
"sonata-project/doctrine-orm-admin-bundle": "^4.0",

src/Controller/CkeditorAdminController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function browserAction(Request $request): Response
111111
$formView = $datagrid->getForm()->createView();
112112
$this->setFormTheme($formView, $this->admin->getFilterTheme());
113113

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

162-
return $this->renderWithExtraParams('@SonataFormatter/Ckeditor/upload.html.twig', [
162+
return $this->render('@SonataFormatter/Ckeditor/upload.html.twig', [
163163
'action' => 'list',
164164
'object' => $media,
165165
'format' => $format,

0 commit comments

Comments
 (0)