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