瀏覽代碼

Merge pull request #3693 from greg0ire/restore_bc

restore the signature for exportAction
Sullivan SENECHAL 9 年之前
父節點
當前提交
154de7966e
共有 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.
      * Export data to specified format.
      *
      *
+     * @param Request $reques
+     *
      * @return Response
      * @return Response
      *
      *
      * @throws AccessDeniedException If access is not granted
      * @throws AccessDeniedException If access is not granted
      * @throws \RuntimeException     If the export format is invalid
      * @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')) {
         if (false === $this->admin->isGranted('EXPORT')) {
             throw new AccessDeniedException();
             throw new AccessDeniedException();
         }
         }