diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-17 18:43:07 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-17 18:43:07 +0300 |
| commit | d827d5345f778bb9a481e916666c540801108d18 (patch) | |
| tree | e65a311623a1bb6f54ba3808d0f3e6bd4257a327 /public | |
| parent | c870b0f4bb688d58575c700f523972bd5cf1be55 (diff) | |
| download | gyraf1gov-d827d5345f778bb9a481e916666c540801108d18.tar.gz gyraf1gov-d827d5345f778bb9a481e916666c540801108d18.tar.bz2 gyraf1gov-d827d5345f778bb9a481e916666c540801108d18.zip | |
framework documenting and cleaning
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 |
