ソースを参照

restore the signature for exportAction

It was like that from the beginning, removing the request parameter was
a BC-break in this case.
Grégoire Paris 9 年 前
コミット
9fc589be67
1 ファイル変更3 行追加2 行削除
  1. 3 2
      Controller/CRUDController.php

+ 3 - 2
Controller/CRUDController.php

@@ -965,14 +965,15 @@ class CRUDController extends Controller
     /**
      * Export data to specified format.
      *
+     * @param Request $reques
+     *
      * @return Response
      *
      * @throws AccessDeniedException If access is not granted
      * @throws \RuntimeException     If the export format is invalid
      */
-    public function exportAction()
+    public function exportAction(Request $request)
     {
-        $request = $this->getRequest();
         if (false === $this->admin->isGranted('EXPORT')) {
             throw new AccessDeniedException();
         }