Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 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();
 }