change http code status on different context

This commit is contained in:
Manuel Raynaud
2013-10-23 09:12:05 +02:00
parent d356974ef7
commit eac2c274e7
5 changed files with 46 additions and 14 deletions

View File

@@ -57,8 +57,10 @@ class BaseController extends ContainerAware
/**
* Return an empty response (after an ajax request, for example)
* @param int $status
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function nullResponse($content = null, $status = 200)
protected function nullResponse($status = 200)
{
return new Response(null, $status);
}