<?php
# Fix: (without this nginx adds max-age=0 to every response)
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');

/**
 * Application environment
 */
defined('APPLICATION_ENV')
    or define('APPLICATION_ENV', isset($_SERVER['APPLICATION_ENV']) ? $_SERVER['APPLICATION_ENV'] : 'production' );

/**
 * Sg library path
 */
defined('SG_LIBRARY_PATH')
    or define('SG_LIBRARY_PATH', isset($_SERVER['SG2_LIBRARY_PATH']) ? $_SERVER['SG2_LIBRARY_PATH'] . '/Sg/' : '' );

/**
 * Include the application bootstrap
 */
require __DIR__ . '/../app/Application.php';

/**
 * Include Composer autoloader
 */
require __DIR__ . '/../app/vendor/autoload.php';

$application = new Application();
echo $application->run();

