Esempio n. 1
0
 public function __call($method, array $args)
 {
     array_unshift($args, $this->space);
     try {
         $result = call_user_func_array([$this->tarantool, $method], $args);
     } catch (\Exception $e) {
         throw ExceptionFactory::create($e);
     }
     return new Response(0, $result);
 }
Esempio n. 2
0
 public function __call($method, array $args)
 {
     try {
         $result = call_user_func_array([$this->tarantool, $method], $args);
     } catch (\Exception $e) {
         throw ExceptionFactory::create($e);
     }
     if (is_bool($result)) {
         $result = [$result];
     }
     return new Response(0, $result);
 }