浏览代码

[FrameworkBundle] fixed 404 exception class name

mwsaz 14 年之前
父节点
当前提交
ddd05cfce4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Controller/ExceptionController.php

@@ -75,7 +75,7 @@ class ExceptionController extends ContainerAware
         switch ($exception->getClass()) {
             case 'Symfony\Component\Security\Exception\AccessDeniedException':
                 return 403;
-            case 'Symfony\Component\HttpKernel\Exception\HttpNotFoundException':
+            case 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException':
                 return 404;
             default:
                 return 500;