浏览代码

Update CRUDController.php

Make handleModelManagerException() method protected to be accessible to controllers extending the CRUDController and type hint its parameter
Alexandru Furculita 10 年之前
父节点
当前提交
f71884acb3
共有 1 个文件被更改,包括 7 次插入2 次删除
  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;