404 not found management

This commit is contained in:
Etienne Roudeix
2013-09-04 10:02:58 +02:00
parent 9a537b69d3
commit 29bf7d9a92
7 changed files with 106 additions and 3 deletions

View File

@@ -205,11 +205,10 @@ class BaseController extends ContainerAware
/**
* Return a 404 error
*
* @return \Symfony\Component\HttpFoundation\Response
* @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
protected function pageNotFound()
{
throw new NotFoundHttpException();
}
}