public function before() { Core::close_buffers(false); $this->phprpc = PHPRPC::server(); $this->auto_add_action(); $this->before_start(); if (IS_DEBUG) { $this->phprpc->setDebugMode(true); } $this->phprpc->start(); }