Revert "Make view with response status and headers"

This reverts commit 036a0bab0b.
This commit is contained in:
Dmitriy A. Golev 2013-05-22 01:47:48 +04:00
parent 357875d6c8
commit 70f2836060
1 changed files with 0 additions and 22 deletions

View File

@ -57,28 +57,6 @@ public static function make($content, $status = 200, $headers = array())
{
return new static($content, $status, $headers);
}
/**
* Create a new response instance with status code.
*
* <code>
* // Create a response instance with a view
* return Response::view('home.no_such_page', 404);
*
* // Create a response instance with a view and data
* return Response::view('item.no_such_page', 404, array('message' => 'Nothing found'), array('header' => 'value'));
* </code>
*
* @param string $view
* @param int $status
* @param array $data
* @param array $headers
* @return Response
*/
public static function view_with_status($view, $status, $data = array(), $headers = array())
{
return new static(View::make($view, $data), $status, $headers);
}
/**
* Create a new response instance containing a view.