refactoring.
This commit is contained in:
@@ -95,14 +95,6 @@ class Response {
|
||||
/**
|
||||
* Create a new response instance.
|
||||
*
|
||||
* <code>
|
||||
* // Create a response instance
|
||||
* return Response::make('Hello World');
|
||||
*
|
||||
* // Create a response instance with a given status code
|
||||
* return Response::make('Hello World', 200);
|
||||
* </code>
|
||||
*
|
||||
* @param mixed $content
|
||||
* @param int $status
|
||||
* @param array $headers
|
||||
@@ -116,14 +108,6 @@ class Response {
|
||||
/**
|
||||
* Create a new response instance containing a view.
|
||||
*
|
||||
* <code>
|
||||
* // Create a new response instance with view content
|
||||
* return Response::view('home.index');
|
||||
*
|
||||
* // Create a new response instance with a view and bound data
|
||||
* return Response::view('home.index', array('name' => 'Fred'));
|
||||
* </code>
|
||||
*
|
||||
* @param string $view
|
||||
* @param array $data
|
||||
* @return Response
|
||||
@@ -136,14 +120,6 @@ class Response {
|
||||
/**
|
||||
* Create a new response instance containing a named view.
|
||||
*
|
||||
* <code>
|
||||
* // Create a new response instance with a named view
|
||||
* return Response::with('layout');
|
||||
*
|
||||
* // Create a new response instance with a named view and bound data
|
||||
* return Response::with('layout', array('name' => 'Fred'));
|
||||
* </code>
|
||||
*
|
||||
* @param string $name
|
||||
* @param array $data
|
||||
* @return Response
|
||||
@@ -160,11 +136,6 @@ class Response {
|
||||
*
|
||||
* Note: The specified error code should correspond to a view in your views/error directory.
|
||||
*
|
||||
* <code>
|
||||
* // Create an error response for status 500
|
||||
* return Response::error('500');
|
||||
* </code>
|
||||
*
|
||||
* @param int $code
|
||||
* @param array $data
|
||||
* @return Response
|
||||
@@ -272,14 +243,6 @@ class Response {
|
||||
|
||||
/**
|
||||
* Magic Method for handling the dynamic creation of Responses containing named views.
|
||||
*
|
||||
* <code>
|
||||
* // Create a Response instance with the "layout" named view
|
||||
* $response = Response::with_layout();
|
||||
*
|
||||
* // Create a Response instance with the "layout" named view and bound data
|
||||
* $response = Response::with_layout(array('name' => 'Fred'));
|
||||
* </code>
|
||||
*/
|
||||
public static function __callStatic($method, $parameters)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user