소스 검색

[FrameworkBundle] fixed renamed routing exception

Kris Wallsmith 14 년 전
부모
커밋
8e85a36e37
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/RequestListener.php

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/RequestListener.php

@@ -19,7 +19,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 use Symfony\Component\Routing\Exception\MethodNotAllowedException;
-use Symfony\Component\Routing\Exception\NotFoundException;
+use Symfony\Component\Routing\Exception\ResourceNotFoundException;
 use Symfony\Component\Routing\RouterInterface;
 use Symfony\Component\Routing\RequestContext;
 
@@ -107,7 +107,7 @@ class RequestListener
             }
 
             $request->attributes->add($parameters);
-        } catch (NotFoundException $e) {
+        } catch (ResourceNotFoundException $e) {
             $message = sprintf('No route found for "%s %s"', $request->getMethod(), $request->getPathInfo());
             if (null !== $this->logger) {
                 $this->logger->err($message);