call(); } else { $response = System\Response::view('error/404', 404); } } else { $response = ( ! $response instanceof System\Response) ? new System\Response($response) : $response; } // ---------------------------------------------------------- // Execute the global "after" filter. // ---------------------------------------------------------- System\Filter::call('after', array($response)); // ---------------------------------------------------------- // Stringify the response. // ---------------------------------------------------------- $response->content = (string) $response->content; // -------------------------------------------------------------- // Close the session. // -------------------------------------------------------------- if (System\Config::get('session.driver') != '') { System\Session::close(); } // -------------------------------------------------------------- // Send the response to the browser. // -------------------------------------------------------------- $response->send();