Пример #1
0
 public static function init()
 {
     Debug::enabled_current_script_debug();
     Debug::set_plain_text_output_mode();
     set_exception_handler(array('Debug', 'fatal'));
     self::setup_server_env();
     self::fit_to_php_configuration();
     self::load_static_constants();
     self::load_dynamic_constants();
     AppContext::set_request(new HTTPRequestCustom());
     AppContext::set_session(SessionData::admin_session());
     AppContext::set_current_user(new AdminUser());
     AppContext::init_extension_provider_service();
     AppContext::set_response(new HTTPResponseCustom());
 }
Пример #2
0
 public static function init_http_services()
 {
     AppContext::set_request(new HTTPRequestCustom());
     $response = new HTTPResponseCustom();
     $response->set_default_attributes();
     AppContext::set_response($response);
 }