mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Trimming comment bloat in Redirect class.
This commit is contained in:
parent
31e4b7a407
commit
af7ba04628
@ -60,10 +60,6 @@ class Redirect {
|
||||
*/
|
||||
public function with($key, $value)
|
||||
{
|
||||
// ----------------------------------------------------
|
||||
// Since this method uses sessions, make sure a driver
|
||||
// has been specified in the configuration file.
|
||||
// ----------------------------------------------------
|
||||
if (Config::get('session.driver') != '')
|
||||
{
|
||||
Session::flash($key, $value);
|
||||
@ -79,17 +75,13 @@ class Redirect {
|
||||
{
|
||||
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Dynamically redirect to a secure route URL.
|
||||
// ----------------------------------------------------
|
||||
if (strpos($method, 'to_secure_') === 0)
|
||||
{
|
||||
return static::to(URL::to_route(substr($method, 10), $parameters, true));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------
|
||||
// Dynamically redirect a route URL.
|
||||
// ----------------------------------------------------
|
||||
if (strpos($method, 'to_') === 0)
|
||||
{
|
||||
return static::to(URL::to_route(substr($method, 3), $parameters));
|
||||
|
Loading…
x
Reference in New Issue
Block a user