Przeglądaj źródła

Merge pull request #3693 from greg0ire/restore_bc

restore the signature for exportAction
Sullivan SENECHAL 9 lat temu
rodzic
commit
154de7966e
1 zmienionych plików z 3 dodań i 2 usunięć
  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();
         }