diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/app/config/setup_framework.php | 19 | ||||
| -rw-r--r-- | public/index.php | 4 |
2 files changed, 19 insertions, 4 deletions
diff --git a/public/app/config/setup_framework.php b/public/app/config/setup_framework.php index 384a643..0198e10 100644 --- a/public/app/config/setup_framework.php +++ b/public/app/config/setup_framework.php @@ -424,7 +424,8 @@ define('MEDIA_STORAGE_ROOT', APP_ROOT.'/storage/uploads/'); // Media files ro * * Anom suggests: * + Common Content Types, and - * + Proxy flags + * + Proxy flags + * + Benchmark report formats * * ----------------------------------------------------------------------------- */ @@ -470,6 +471,19 @@ define('PROXY_DO_NOT_CACHE', 4); // do not cache result +/** BENCHMARK REPORT TYPES + * ----------------------------------------------------------------------------- + */ + +define('BENCH_REPORT_ARRAY', 1); // repost as array +define('BENCH_REPORT_JSON' , 2); // report as json oblject +define('BENCH_REPORT_HTML' , 3); // report as HTML code +define('BENCH_REPORT_CODE' , 4); // report as CODE/text +define('BENCH_REPORT_COMMENT' , 5); // report as HTML comment + + + + /** need even more constants? ////////////////////////////////////////////////// * ----------------------------------------------------------------------------- * @@ -478,4 +492,5 @@ define('PROXY_DO_NOT_CACHE', 4); // do not cache result * * ----------------------------------------------------------------------------- */ -require_once WEB_ROOT.'/app/config/setup_application.php'; + + require_once WEB_ROOT.'/app/config/setup_application.php'; diff --git a/public/index.php b/public/index.php index c0b0b68..10029c5 100644 --- a/public/index.php +++ b/public/index.php @@ -57,7 +57,7 @@ if (!PRODUCTION) Benchmark::add_spot('start'); // benchmark request's life // Initialize Application -// finalize framework; handle credentials; setup app-engine; insert routes +// finalize framework; setup app-engine; insert routes; investigate request // ----------------------------------------------------------------------------- require_once APPLICATION_BOOTSTRAP; @@ -71,5 +71,5 @@ Route::run(Registry::get('REQUEST')); // Run baby, run! if (!PRODUCTION) Benchmark::add_spot('end'); // request ended -if (!PRODUCTION) Benchmark::render_report(); // echo benchmark report +if (!PRODUCTION) echo( Benchmark::report()); // echo benchmark report ob_flush(); // flush output |
