* The path to the framework core.
 */
define('COREPATH', realpath(__DIR__ . '/../fuel/core/') . DIRECTORY_SEPARATOR);
// Get the start time and memory for use later
defined('FUEL_START_TIME') or define('FUEL_START_TIME', microtime(true));
defined('FUEL_START_MEM') or define('FUEL_START_MEM', memory_get_usage());
// Load in the Fuel autoloader
require COREPATH . 'classes' . DIRECTORY_SEPARATOR . 'autoloader.php';
class_alias('Fuel\\Core\\Autoloader', 'Autoloader');
// Boot the app
require APPPATH . 'bootstrap.php';
// Generate the request, execute it and send the output.
try {
    $response = Request::forge()->execute()->response();
} catch (HttpNotFoundException $e) {
    \Request::reset_request(true);
    $route = array_key_exists('_404_', Router::$routes) ? Router::$routes['_404_']->translation : Config::get('routes._404_');
    if ($route instanceof Closure) {
        $response = $route();
        if (!$response instanceof Response) {
            $response = Response::forge($response);
        }
    } elseif ($route) {
        $response = Request::forge($route, false)->execute()->response();
    } else {
        throw $e;
    }
}
// Render the output
$response->body((string) $response);
// This will add the execution time and memory usage to the output.