示例#1
0
 public function indexAction()
 {
     require VENDOR_PATH . '/Hprose/Hprose.php';
     $server = new \Hprose\Http\Server();
     $server->addMissingMethod('run', $this);
     if ($this->debug) {
         $server->setDebugEnabled(true);
     }
     $server->setCrossDomainEnabled($this->crossDomain);
     $server->setP3PEnabled($this->P3P);
     $server->setGetEnabled($this->get);
     $server->start();
 }
 public function index()
 {
     vendor('Hprose.Hprose');
     $server = new \Hprose\Http\Server();
     $server->addMissingMethod('run', $this);
     if ($this->debug) {
         $server->setDebugEnabled(true);
     }
     $server->setCrossDomainEnabled($this->crossDomain);
     $server->setP3PEnabled($this->P3P);
     $server->setGetEnabled($this->get);
     $server->start();
 }