diff options
Diffstat (limited to 'app/Job/HttpAsyncJob.php')
-rw-r--r-- | app/Job/HttpAsyncJob.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/Job/HttpAsyncJob.php b/app/Job/HttpAsyncJob.php index f2e9b3f5..9e1ffb61 100644 --- a/app/Job/HttpAsyncJob.php +++ b/app/Job/HttpAsyncJob.php @@ -18,11 +18,12 @@ class HttpAsyncJob extends BaseJob * @param string $url * @param string $content * @param array $headers + * @param bool $raiseForErrors * @return $this */ - public function withParams($method, $url, $content, array $headers) + public function withParams($method, $url, $content, array $headers, $raiseForErrors = false) { - $this->jobParams = array($method, $url, $content, $headers); + $this->jobParams = array($method, $url, $content, $headers, $raiseForErrors); return $this; } @@ -34,9 +35,10 @@ class HttpAsyncJob extends BaseJob * @param string $url * @param string $content * @param array $headers + * @param bool $raiseForErrors */ - public function execute($method, $url, $content, array $headers) + public function execute($method, $url, $content, array $headers, $raiseForErrors = false) { - $this->httpClient->doRequest($method, $url, $content, $headers); + $this->httpClient->doRequest($method, $url, $content, $headers, $raiseForErrors); } } |