public function proceed(HermitProxy $proxy, $name, array $parameters) { if ($this->hasTransaction()) { throw new LogicException('Already associated with another transaction'); } return $proxy->request($name, $parameters); }
public function proceed(HermitProxy $proxy, $name, array $parameters) { if (!$this->hasTransaction()) { throw new LogicException('No transaction'); } return $proxy->request($name, $parameters); }
public function proceed(HermitProxy $proxy, $name, array $parameters) { try { return $proxy->request($name, $parameters); } catch (Exception $e) { throw $e; } }
public function execute(HermitProxy $proxy, $name, array $parameters) { $response = $proxy->request($name, $parameters); $responders = $this->responders[$name]; foreach ($responders as $responder) { $responder->request($name, array($response)); } return $response; }
public function proceed(HermitProxy $proxy, $name, array $parameters) { $this->begin(); try { $ret = $proxy->request($name, $parameters); $this->commit(); return $ret; } catch (Exception $e) { $this->complete($e); throw $e; } }
public function proceed(HermitProxy $proxy, $name, array $parameters) { $began = false; if (!$this->hasTransaction()) { $this->begin(); $began = true; } $ret = null; try { $ret = $proxy->request($name, $parameters); if ($began) { $this->commit(); } return $ret; } catch (Exception $e) { if ($began) { $this->complete($e); } throw $e; } }
protected static function __request(HermitProxy $proxy, $name, array $params) { return $proxy->request($name, $params); }