Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Add asynchronous request to curl #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Events/DatabaseTransactionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function create(string $sessionId, string $sessionSecret, array $data): v

$this->setOption(CURLOPT_URL, $endpoint);
$this->setOption(CURLOPT_RETURNTRANSFER, true);
$this->setOption(CURLOPT_HEADER, false);
$this->setOption(CURLOPT_RETURNTRANSFER, false);
$this->setOption(
CURLOPT_POSTFIELDS,
$this->generatePayload($data, self::EVENT_TYPE)
Expand Down
2 changes: 2 additions & 0 deletions src/Events/LogEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function create(string $sessionId, string $sessionSecret, array $data): v

$this->setOption(CURLOPT_URL, $endpoint);
$this->setOption(CURLOPT_RETURNTRANSFER, true);
$this->setOption(CURLOPT_HEADER, false);
$this->setOption(CURLOPT_RETURNTRANSFER, false);
$this->setOption(
CURLOPT_POSTFIELDS,
$this->generatePayload($data, self::EVENT_TYPE)
Expand Down