1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

fix(influx): use curl as driver

This commit is contained in:
Torsten Dittmann 2021-05-04 14:32:20 +02:00
parent a46638544f
commit 3ab5fefb79
3 changed files with 19 additions and 25 deletions

View file

@ -169,8 +169,9 @@ $register->set('influxdb', function () { // Register DB connection
if (empty($host) || empty($port)) {
return;
}
$driver = new InfluxDB\Driver\Curl(dsn: "http://{$host}:{$port}");
$client = new InfluxDB\Client(host: $host, port: $port, timeout: 5);
$client->setDriver($driver);
return $client;
});

View file

@ -55,7 +55,7 @@
"resque/php-resque": "1.3.6",
"matomo/device-detector": "4.2.2",
"dragonmantank/cron-expression": "3.1.0",
"influxdb/influxdb-php": "dev-fix-php-8",
"influxdb/influxdb-php": "1.15.2",
"phpmailer/phpmailer": "6.4.0",
"chillerlan/php-qrcode": "4.3.0",
"adhocore/jwt": "1.1.2",
@ -71,10 +71,6 @@
{
"type": "git",
"url": "https://github.com/appwrite/sdk-generator"
},
{
"type": "git",
"url": "https://github.com/torstendittmann/influxdb-php"
}
],
"provide": {

35
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "e1895c2ac913b340a77d06030122f42e",
"content-hash": "32ceddda707fb8f625f84eec08dc3871",
"packages": [
{
"name": "adhocore/jwt",
@ -649,11 +649,17 @@
},
{
"name": "influxdb/influxdb-php",
"version": "dev-fix-php-8",
"version": "1.15.2",
"source": {
"type": "git",
"url": "https://github.com/torstendittmann/influxdb-php",
"reference": "a784e08b0bf1658b11ff14c86942c9ba7a77709f"
"url": "https://github.com/influxdata/influxdb-php.git",
"reference": "d6e59f4f04ab9107574fda69c2cbe36671253d03"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/influxdata/influxdb-php/zipball/d6e59f4f04ab9107574fda69c2cbe36671253d03",
"reference": "d6e59f4f04ab9107574fda69c2cbe36671253d03",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": "^6.0|^7.0",
@ -673,19 +679,7 @@
"InfluxDB\\": "src/InfluxDB"
}
},
"autoload-dev": {
"psr-4": {
"InfluxDB\\Test\\": "tests"
}
},
"scripts": {
"test": [
"vendor/bin/phpunit"
],
"test-ci": [
"vendor/bin/phpunit -v --coverage-clover=clover.xml"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
@ -713,7 +707,11 @@
"influxdb library",
"time series"
],
"time": "2021-05-04T12:12:20+00:00"
"support": {
"issues": "https://github.com/influxdata/influxdb-php/issues",
"source": "https://github.com/influxdata/influxdb-php/tree/1.15.2"
},
"time": "2020-12-26T17:45:17+00:00"
},
{
"name": "matomo/device-detector",
@ -5927,7 +5925,6 @@
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"influxdb/influxdb-php": 20,
"appwrite/sdk-generator": 20
},
"prefer-stable": false,