Add comment to Redirect class.

This commit is contained in:
Taylor Otwell 2011-07-07 12:41:18 -07:00
parent 59e5cfc711
commit 5475048749
1 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,13 @@ public function with($key, $value)
*/ */
public static function __callStatic($method, $parameters) public static function __callStatic($method, $parameters)
{ {
// Get the parameters for the method. Dynamic routes can be generated using an
// array of parameters for routes that contain wildcards, such as /user/(:num).
//
// Example: Redirect::to_profile(array(1));
//
// Here we'll check to see if a parameter was passed. If it wasn't, we'll just
// pass an empty array into the URL generator.
$parameters = (isset($parameters[0])) ? $parameters[0] : array(); $parameters = (isset($parameters[0])) ? $parameters[0] : array();
// Dynamically redirect to a secure route URL. // Dynamically redirect to a secure route URL.