Explorar o código

[FrameworkBundle] fixed 404 exception class name

mwsaz %!s(int64=14) %!d(string=hai) anos
pai
achega
ddd05cfce4

+ 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;