Explorar o código

Update CRUDController.php

Make handleModelManagerException() method protected to be accessible to controllers extending the CRUDController and type hint its parameter
Alexandru Furculita %!s(int64=10) %!d(string=hai) anos
pai
achega
f71884acb3
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      Controller/CRUDController.php

+ 7 - 2
Controller/CRUDController.php

@@ -185,8 +185,13 @@ class CRUDController extends Controller
 
         return parent::render($view, $parameters, $response);
     }
-
-    private function handleModelManagerException($e)
+    
+    /**
+     * @param \Exception $e
+     *
+     * @throws \Exception
+     */
+    protected function handleModelManagerException(\Exception $e)
     {
         if ($this->get('kernel')->isDebug()) {
             throw $e;