From 4c8ce751f254c99e75f5e101c566ee979fef4b9f Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 14 May 2014 11:36:38 -0400 Subject: [PATCH] Decouple Bootstrap --- Sleepy/Core/Input.php | 1 - Sleepy/Core/Router.php | 25 ------------------------- index.php | 36 +++++------------------------------- 3 files changed, 5 insertions(+), 57 deletions(-) delete mode 100755 Sleepy/Core/Router.php diff --git a/Sleepy/Core/Input.php b/Sleepy/Core/Input.php index fe7120a..9992839 100755 --- a/Sleepy/Core/Input.php +++ b/Sleepy/Core/Input.php @@ -316,7 +316,6 @@ class Input { $q_types = []; // A fake value so I can shift it off to have a 1-indexed array $high_types = []; - $output = []; $count = 1; // Split into segments of different values diff --git a/Sleepy/Core/Router.php b/Sleepy/Core/Router.php deleted file mode 100755 index 5f19a01..0000000 --- a/Sleepy/Core/Router.php +++ /dev/null @@ -1,25 +0,0 @@ -set('config', new Config()); -$di->set('router', $rf->newInstance()); -$di->set('input', new Input()); -$di->set('output', new Output($di->get('config'), $di->get('input'))); - -$browser->browser_name_regex = \utf8_encode($browser->browser_name_regex); -$di->get('output')->set_data(['json','yaml','html'], [ - '$_SERVER' => $i->server(), - '$_GET' => $i->get(), - '$_POST' => $i->post(), - '$_PUT' => $i->put(), - '$_DELETE' => $i->delete(), - '$_ENV' => $i->env(), - '$_COOKIE' => $i->cookie(), - 'browser' => $browser, - 'raw headers' => $i->header(), - 'parsed headers' => $i->header_array() -]); // End of index.php \ No newline at end of file