Exemplo n.º 1
0
 /**
  * Creates a new HessianService instace to serve remote requests from Hessian clients
  * @param $serviceObject Class name or object instance
  * @param mixed $options array or HessianOptions object
  */
 function __construct($serviceObject, $options = null)
 {
     $this->options = HessianOptions::resolveOptions($options);
     if ($serviceObject) {
         $this->registerObject($serviceObject);
     }
     $this->options->detectVersion = true;
     $this->typemap = new HessianTypeMap($this->options->typeMap);
     $this->factory = new HessianFactory();
     // timezones
     HessianUtils::setTimeZone($this->options->timeZone);
 }