コード例 #1
0
ファイル: ThenResolver.php プロジェクト: cubiche/cubiche
 /**
  * {@inheritdoc}
  */
 public function reject($reason = null)
 {
     try {
         parent::reject($reason);
     } catch (\Exception $e) {
         $reason = $e;
     }
     $this->deferred->reject($reason);
 }
コード例 #2
0
ファイル: Deferred.php プロジェクト: cubiche/cubiche
 /**
  * {@inheritdoc}
  */
 public function reject($reason = null)
 {
     $this->promise();
     parent::reject($reason);
 }