Skip to content

Commit

Permalink
added passing transport options to the http transport in laravel conn…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
evsign committed Jan 24, 2019
1 parent 4c85242 commit 53d8da1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Integrations/Laravel/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ protected function createClientFor($server, TransportInterface $transport)
*
* @return \Tinderbox\Clickhouse\Interfaces\TransportInterface
*/
protected function createTransport(array $options): TransportInterface
protected function createTransport(array $options) : TransportInterface
{
return new HttpTransport($options['client'] ?? null, $options['timeout'] ?? 5.0);
$client = $options['client'] ?? null;

unset($options['client']);

return new HttpTransport($client, $options);
}

/**
Expand Down

0 comments on commit 53d8da1

Please sign in to comment.