[FrameworkBundle] fixed renamed routing exception

This commit is contained in:
Kris Wallsmith 2011-05-17 12:55:24 -07:00
parent 68a0b7aded
commit 8e85a36e37

View File

@ -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);