refactoring various classes.

This commit is contained in:
Taylor Otwell
2011-10-15 14:39:52 -05:00
parent 2b93963f34
commit 76a5bc483a
6 changed files with 13 additions and 25 deletions

View File

@@ -101,16 +101,6 @@ else
$response = Response::error('404');
}
if ($response instanceof Routing\Delegate)
{
$response = Routing\Controller::call($response, $route->parameters);
}
if ( ! $response instanceof Response)
{
$response = new Response($response);
}
/**
* Stringify the response. We need to force the response to be
* stringed before closing the session, since the developer may
@@ -127,9 +117,7 @@ $response->content = $response->render();
*/
if (Config::$items['session']['driver'] !== '')
{
$flash = array(Input::old_input => Input::get());
Session\Manager::close($flash);
Session\Manager::close(array(Input::old_input => Input::get()));
}
/**