示例#1
0
 public static function initialize()
 {
     $run = new Run();
     if (\BWBlog\Utils::isAjax()) {
         $handler = new JsonResponseHandler();
     } else {
         $handler = new PrettyPageHandler();
     }
     $run->pushHandler($handler);
     $run->register();
 }